From f639d350b9c7950753c26f484a0fd3c0831e0e0c Mon Sep 17 00:00:00 2001 From: Nickiel12 Date: Fri, 11 Aug 2023 23:19:01 -0700 Subject: [PATCH] added scaffolding for function --- src/uis/new_transaction.rs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/uis/new_transaction.rs b/src/uis/new_transaction.rs index 96e5813..ae54c06 100644 --- a/src/uis/new_transaction.rs +++ b/src/uis/new_transaction.rs @@ -69,4 +69,20 @@ pub fn render_new_transaction_tab (f: &mut Frame, body_rect: Rect ); f.render_widget(tab, tab_chunks[i]) } + + match app.states.transactions.tabs[app.states.transactions.cur_tab_index] { + "Quick Entry" => render_quick_entry(f, chunks[1], app), + "Manual Entry" => render_manual_entry(f, chunks[1], app), + _ => return + }; + +} + +pub fn render_manual_entry (f: &mut Frame, area: Rect, app: &App) { + +} + + +pub fn render_quick_entry (f: &mut Frame, area: Rect, app: &App) { + }