From 410aec5b44f9dac2ee33b048b7e0c028007e4a35 Mon Sep 17 00:00:00 2001 From: Legend <126304434+ExpiredWarranty@users.noreply.github.com> Date: Fri, 17 May 2024 22:29:41 -0600 Subject: [PATCH] Update page.tsx f]h --- src/app/page.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 1a24e53..feedec0 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -13,8 +13,8 @@ export default function Home() { const [splashText, setSplashText] = useState('') useEffect(() => { - // Fetch splash text from JSON file - fetch('/splash.json') + + fetch('/public/splash.json') .then(response => response.json()) .then(data => { const randomIndex = Math.floor(Math.random() * data.length); @@ -22,7 +22,6 @@ export default function Home() { }) .catch(error => console.error('Error fetching splash text:', error)); - // Fetch shortcuts from local storage store.set('shortcuts', [], false) const data: Item[] = store('shortcuts') setShortcuts(data)