File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 11import { ExternalLink } from "lucide-react"
2- import { type NavItemType } from '@/types/navigation '
2+ import { type NavItemType } from '@/types'
33import {
44 SidebarGroup ,
55 SidebarGroupContent ,
Original file line number Diff line number Diff line change @@ -2,14 +2,9 @@ import { Link } from "@inertiajs/react"
22import { Button } from "@/components/ui/button"
33import Heading from "@/components/heading" ;
44import { cn } from "@/lib/utils"
5- import { type NavItemType } from '@/types/navigation'
6-
5+ import { type NavItemType } from '@/types'
76import { Separator } from "@/components/ui/separator"
87
9- interface LayoutProps {
10- children : React . ReactNode
11- }
12-
138const sidebarNavItems : NavItemType [ ] = [
149 {
1510 title : "Profile" ,
@@ -30,7 +25,9 @@ const sidebarNavItems: NavItemType[] = [
3025
3126export default function SettingsLayout ( {
3227 children
33- } : LayoutProps ) {
28+ } : {
29+ children : React . ReactNode
30+ } ) {
3431 const currentPath = window . location . pathname
3532 const currentItem = sidebarNavItems . find ( item => currentPath === item . url )
3633
You can’t perform that action at this time.
0 commit comments