diff options
| author | Max Nanis | 2025-06-06 16:32:17 +0700 |
|---|---|---|
| committer | Max Nanis | 2025-06-06 16:32:17 +0700 |
| commit | 696dee6a6a9506fcf771d0ec4911dcc82a279fda (patch) | |
| tree | 3e8d0bde7cded0f3e1fba82e3af1f2253c06bcbf /src/components/site-header.tsx | |
| parent | 2f675eecec576b1ab17260e2513e1eec187a81d2 (diff) | |
| download | panel-ui-696dee6a6a9506fcf771d0ec4911dcc82a279fda.tar.gz panel-ui-696dee6a6a9506fcf771d0ec4911dcc82a279fda.zip | |
Lots of reducer work to organize active Question in redux state (rather than useState). Various UX/CSS checks for Pagination state.
Diffstat (limited to 'src/components/site-header.tsx')
| -rw-r--r-- | src/components/site-header.tsx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/components/site-header.tsx b/src/components/site-header.tsx index 0000e5f..f4c42ec 100644 --- a/src/components/site-header.tsx +++ b/src/components/site-header.tsx @@ -1,8 +1,11 @@ import {Separator} from "@/components/ui/separator" import {SidebarTrigger} from "@/components/ui/sidebar" import React from "react"; +import {useAppSelector} from "@/hooks.ts"; +import {Offerwall} from "@/pages/Offerwall.tsx"; const SiteHeader = () => { + const app = useAppSelector(state => state.app) return ( <header @@ -14,7 +17,11 @@ const SiteHeader = () => { orientation="vertical" className="mx-2 data-[orientation=vertical]:h-4" /> - <h1 className="text-base font-medium">Offerwall</h1> + <h1 className="text-base font-medium"> + {app.currentPage === 'offerwall' && "Offerwall"} + {app.currentPage === 'questions' && "Profiling Questions"} + {app.currentPage === 'cashouts' && "Cashout Methods"} + </h1> </div> </header> |
