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/app-sidebar.tsx | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

(limited to 'src/components/app-sidebar.tsx')

diff --git a/src/components/app-sidebar.tsx b/src/components/app-sidebar.tsx
index 9a13aff..c60bf17 100644
--- a/src/components/app-sidebar.tsx
+++ b/src/components/app-sidebar.tsx
@@ -1,6 +1,6 @@
 "use client"
 
-import * as React from "react"
+import React from "react"
 import {CircleDollarSign, SquareStack} from "lucide-react"
 
 import {NavMain} from "@/components/nav-main"
@@ -14,9 +14,9 @@ import {
     SidebarMenu,
     SidebarMenuButton,
     SidebarMenuItem,
-    useSidebar,
 } from "@/components/ui/sidebar"
 import {useAppDispatch, useAppSelector} from "@/hooks.ts";
+import {App} from "@/models/app.ts"
 import {setPage} from "@/models/appSlice.ts";
 import {Badge} from "@/components/ui/badge.tsx";
 import {useSelector} from "react-redux";
@@ -24,13 +24,11 @@ import {selectCashoutMethods} from "@/models/cashoutMethodSlice.ts";
 import {selectTransactionHistory} from "@/models/transactionHistorySlice.ts";
 
 export function AppSidebar({...props}: React.ComponentProps<typeof Sidebar>) {
-    const app = useAppSelector(state => state.app)
+    const app: App = useAppSelector(state => state.app)
     const dispatch = useAppDispatch()
     const cashoutMethods = useSelector(selectCashoutMethods)
     const transactionHistory = useSelector(selectTransactionHistory)
 
-    const {isMobile} = useSidebar()
-
     return (
         <Sidebar collapsible="offcanvas" {...props}>
             <SidebarHeader>
-- 
cgit v1.2.3

