Skip to content

Commit 68dac46

Browse files
committed
feat(View): add stub implementation of draw_screen
The View component in MVVM handles UI layout and construction. Though it is currently in the model directory, the `View` enum will be our View component. Future commits will move this to it's own directory. Add a stub implementation of a method that can draw the current screen. Signed-off-by: Ivin Joel Abraham <[email protected]>
1 parent 3c044a9 commit 68dac46

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/model/screens/mod.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,16 @@ pub enum View {
1212
PatchsetDetails,
1313
EditConfig,
1414
}
15+
16+
impl View {
17+
#[allow(dead_code)]
18+
pub fn draw_screen(&self) {
19+
match self {
20+
View::MailingListSelection => todo!(),
21+
View::BookmarkedPatchsets => todo!(),
22+
View::LatestPatchsets => todo!(),
23+
View::PatchsetDetails => todo!(),
24+
View::EditConfig => todo!(),
25+
}
26+
}
27+
}

0 commit comments

Comments
 (0)