From 138f1e9b6e1e594bf2054e5c815022ea87e2c5e7 Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Sat, 7 Sep 2024 11:05:01 +0200 Subject: [PATCH] ui fix --- src/routes/market-mover/+page.svelte | 2 +- src/routes/watchlist/+page.svelte | 8 +++++--- src/routes/watchlist/+page.ts | 4 +++- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/routes/market-mover/+page.svelte b/src/routes/market-mover/+page.svelte index 6a3e0b83..217468a2 100644 --- a/src/routes/market-mover/+page.svelte +++ b/src/routes/market-mover/+page.svelte @@ -323,7 +323,7 @@ $: charNumber = $screenWidth < 640 ? 20 : 30; Stock Indexes - {getCurrentDateFormatted()} -
+
diff --git a/src/routes/watchlist/+page.svelte b/src/routes/watchlist/+page.svelte index 672981e5..bb30314c 100644 --- a/src/routes/watchlist/+page.svelte +++ b/src/routes/watchlist/+page.svelte @@ -8,7 +8,7 @@ import { Drawer } from "vaul-svelte"; import Input from '$lib/components/Input.svelte'; import WatchListCard from '$lib/components/WatchListCard.svelte'; import {screenWidth, switchWatchList } from '$lib/store'; -import MiniPlot from '$lib/components/MiniPlot.svelte'; +//import MiniPlot from '$lib/components/MiniPlot.svelte'; import { goto } from '$app/navigation'; import ArrowLogo from "lucide-svelte/icons/move-up-right"; @@ -43,7 +43,7 @@ function getCurrentDateFormatted() { return `${month} ${day}, ${year}`; } - +/* let priceDataSP500; let priceDataNasdaq; let priceDataDowJones; @@ -83,6 +83,7 @@ rawData?.forEach(({ symbol, priceData, changesPercentage, previousClose }) => { break; } }); +*/ let isLoaded = false; @@ -452,7 +453,7 @@ onDestroy( () => { {#if isLoaded} - + {#if allList?.length !== 0}
diff --git a/src/routes/watchlist/+page.ts b/src/routes/watchlist/+page.ts index 0ea928ca..7926142b 100644 --- a/src/routes/watchlist/+page.ts +++ b/src/routes/watchlist/+page.ts @@ -1,3 +1,4 @@ +/* import { getCache, setCache } from '$lib/store'; @@ -36,4 +37,5 @@ export const load = async ({parent}) => { return { getMiniPlotsIndex: await getMiniPlotsIndex(), }; -}; \ No newline at end of file +}; +*/