moved form.rs into the state where it really belongs to
This commit is contained in:
@@ -6,7 +6,7 @@ use ratatui::{
|
||||
Frame,
|
||||
};
|
||||
use crate::config::colors::themes::Theme;
|
||||
use crate::ui::form::FormState;
|
||||
use crate::state::pages::form::FormState;
|
||||
use crate::components::handlers::canvas::render_canvas;
|
||||
|
||||
pub fn render_form(
|
||||
|
||||
@@ -8,7 +8,7 @@ use ratatui::{
|
||||
prelude::Alignment,
|
||||
};
|
||||
use crate::config::colors::themes::Theme;
|
||||
use crate::ui::form::FormState;
|
||||
use crate::state::pages::form::FormState;
|
||||
|
||||
pub fn render_canvas(
|
||||
f: &mut Frame,
|
||||
|
||||
@@ -112,7 +112,7 @@ impl IntroState {
|
||||
}
|
||||
|
||||
pub fn next_option(&mut self) {
|
||||
self.selected_option = (self.selected_option + 1) % 3; // Now 3 options
|
||||
self.selected_option = (self.selected_option + 1) % 3;
|
||||
}
|
||||
|
||||
pub fn previous_option(&mut self) {
|
||||
|
||||
Reference in New Issue
Block a user