Draw the create sandbox modal overlay.
(frame: &mut Frame<'_>, app: &App, area: Rect)
| 12 | |
| 13 | /// Draw the create sandbox modal overlay. |
| 14 | pub fn draw(frame: &mut Frame<'_>, app: &App, area: Rect) { |
| 15 | let Some(form) = &app.create_form else { |
| 16 | return; |
| 17 | }; |
| 18 | |
| 19 | match form.phase { |
| 20 | CreatePhase::Form => draw_form(frame, app, area), |
| 21 | CreatePhase::Creating => draw_creating(frame, app, area), |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | // --------------------------------------------------------------------------- |
| 26 | // Form view |
nothing calls this directly
no test coverage detected