From d2a7069f0bdd6f27b526cf671e39c842066cac9a Mon Sep 17 00:00:00 2001 From: Francisco Date: Tue, 21 Mar 2023 22:19:51 +0100 Subject: [PATCH] Add comment --- packages/bridge-ui/src/pages/home/Home.svelte | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/bridge-ui/src/pages/home/Home.svelte b/packages/bridge-ui/src/pages/home/Home.svelte index 9000bbf1a7b..b7eb86997e1 100644 --- a/packages/bridge-ui/src/pages/home/Home.svelte +++ b/packages/bridge-ui/src/pages/home/Home.svelte @@ -12,9 +12,11 @@ // TODO: think about a more general approach here. // We're assuming we have two tabs. The base location - // corresponde with `bridge` tab => /, otherwise we're - // opening the second tab `transactions`. What if we add - // a new tab? + // corresponds with `bridge` tab => /, otherwise we're + // opening the second tab `transactions` => /transactions. + // What if we add a new tab?. Also, routes are coupled to + // tab's name We might want to have this configuration + // somwhere. $: activeTab = $location === '/' ? 'bridge' : 'transactions'; // TODO: do we really need all these tricks to style containers