From 8138549f64403874eb7c7ddfbde1cc2cc2c03695 Mon Sep 17 00:00:00 2001 From: Max Nanis Date: Mon, 23 Jun 2025 17:20:31 +0700 Subject: Typescript validation finally passes. --- src/components/site-header.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/components/site-header.tsx') diff --git a/src/components/site-header.tsx b/src/components/site-header.tsx index 25b3e52..dca4996 100644 --- a/src/components/site-header.tsx +++ b/src/components/site-header.tsx @@ -1,11 +1,11 @@ import {Separator} from "@/components/ui/separator" import {SidebarTrigger} from "@/components/ui/sidebar" -import React from "react"; import {useAppSelector} from "@/hooks.ts"; +import {App} from "@/models/app.ts" import {Offerwall} from "@/pages/Offerwall.tsx"; const SiteHeader = () => { - const app = useAppSelector(state => state.app) + const app: App = useAppSelector(state => state.app) return (
{ {app.currentPage === 'questions' && "Profiling Questions"} {app.currentPage === 'demographics' && "User Demographics"} {app.currentPage === 'task_attempts' && "Task Attempts"} - {app.currentPage === 'cashouts' && "Cashout Methods"} + {app.currentPage === 'cashout_methods' && "Cashout Methods"} {app.currentPage === 'transaction_history' && 'Transaction History'} -- cgit v1.2.3