diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 0a30c39..077a1fe 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -34,6 +34,8 @@ const store = createStore({ }), }); +// todo fix user persisting on reload + function UserFetcher() { const setUser = useStoreActions((actions) => actions.setUser); const { data, error } = useSWR("/api/user", fetcher); diff --git a/src/components/Sidebar.tsx b/src/components/Sidebar.tsx index f9b439e..98bfa62 100644 --- a/src/components/Sidebar.tsx +++ b/src/components/Sidebar.tsx @@ -16,7 +16,7 @@ interface SidebarProps { setHoveredEventId: Dispatch>; button1Name: string; button2Name: string; - onButton2Click?: () => void; + onButton2Click?: () => void; } function MagnitudeNumber({ magnitude }: { magnitude: number }) { @@ -37,6 +37,8 @@ function MagnitudeNumber({ magnitude }: { magnitude: number }) { ); } +// todo change sidebar event highlighting on selection + export default function Sidebar({ logTitle, logSubtitle, @@ -48,7 +50,7 @@ export default function Sidebar({ setHoveredEventId, button1Name, button2Name, - onButton2Click, + onButton2Click, }: SidebarProps) { const eventsContainerRef = useRef(null); @@ -70,21 +72,21 @@ export default function Sidebar({

{logTitle}

{logSubtitle}

- - - - - {/* "Search Earthquakes" should NOT be wrapped in a Link! */} - -
+ + + + + {/* "Search Earthquakes" should NOT be wrapped in a Link! */} + +

{recentsTitle}