aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2019-08-12 03:21:22 -0400
committerJesse Luehrs <doy@tozt.net>2019-08-12 03:21:22 -0400
commit3d8778962b4a380efd098616ac49b6dedd2b8fbe (patch)
tree9537a3e0146191d655e2a2f1ddd5aa10fec1f8a9 /src/main.rs
parent701cf5719e7c9e4c03111a73b74c16d065ac8799 (diff)
downloadynab-api-3d8778962b4a380efd098616ac49b6dedd2b8fbe.tar.gz
ynab-api-3d8778962b4a380efd098616ac49b6dedd2b8fbe.zip
add a stub submit handler
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs17
1 files changed, 1 insertions, 16 deletions
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();