diff --git a/src/routes/market-news/+layout.svelte b/src/routes/market-news/+layout.svelte index 3df8eb34..9eb61fb9 100644 --- a/src/routes/market-news/+layout.svelte +++ b/src/routes/market-news/+layout.svelte @@ -7,13 +7,17 @@ const tabs = [ { - title: "Stock", + title: "All Stocks", path: "/market-news", }, { - title: "General", + title: "Market", path: "/market-news/general", }, + { + title: "Press Releases", + path: "/market-news/press-releases", + }, ]; let activeIdx = 0; @@ -23,6 +27,8 @@ activeIdx = 0; } else if ($page.url.pathname.startsWith("/market-news/general")) { activeIdx = 1; + } else if ($page.url.pathname.startsWith("/market-news/press-releases")) { + activeIdx = 2; } @@ -49,18 +55,20 @@ >

- Stock Market News + {activeIdx === 0 + ? "All Stocks News" + : activeIdx === 1 + ? "Market News" + : "Press Releases"}