From 753a9b60a6605ce86b61238dac79da60a7ab1ad0 Mon Sep 17 00:00:00 2001 From: Francisco Date: Tue, 21 Mar 2023 22:42:03 +0100 Subject: [PATCH] Add TODO --- packages/bridge-ui/src/pages/home/Home.svelte | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/bridge-ui/src/pages/home/Home.svelte b/packages/bridge-ui/src/pages/home/Home.svelte index d02f82316c1..b4d1903f9d3 100644 --- a/packages/bridge-ui/src/pages/home/Home.svelte +++ b/packages/bridge-ui/src/pages/home/Home.svelte @@ -10,13 +10,16 @@ let bridgeWidth: number; let bridgeHeight: number; - // Tab's name <=> route association + // List of tab's name <=> route association + // TODO: add this into a general configuration. const tabsRoute = [ { name: 'bridge', href: '/' }, { name: 'transactions', href: '/transactions' }, // Add more tabs if needed ]; + // TODO: we're assuming we have only two tabs here. + // Change strategy if needed. $: activeTab = $location === '/' ? tabsRoute[0].name : tabsRoute[1].name; // TODO: do we really need all these tricks to style containers