From 3d8778962b4a380efd098616ac49b6dedd2b8fbe Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Mon, 12 Aug 2019 03:21:22 -0400 Subject: add a stub submit handler --- src/main.rs | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 358a842..7d19af4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -21,22 +21,7 @@ fn main() { budget.id() ))); - let inflows_table = views::inflows_table(&budget); - layout.add_child(views::vi_view( - cursive::views::CircularFocus::wrap_arrows( - cursive::views::BoxView::with_min_height( - std::cmp::min(std::cmp::max(inflows_table.len(), 1), 5) + 2, - cursive::views::BoxView::with_full_width(inflows_table), - ), - ), - )); - - let outflows_table = views::outflows_table(&budget); - layout.add_child(views::vi_view( - cursive::views::CircularFocus::wrap_arrows( - cursive::views::BoxView::with_full_screen(outflows_table), - ), - )); + layout.add_child(views::txn_tables(&budget)); app.add_fullscreen_layer(layout); app.run(); -- cgit v1.2.3-54-g00ecf