Skip to content

Commit d5b4bb6

Browse files
committed
more cleanup
1 parent 7551100 commit d5b4bb6

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

resources/js/components/nav-footer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { ExternalLink } from "lucide-react"
2-
import { type NavItemType } from '@/types/navigation'
2+
import { type NavItemType } from '@/types'
33
import {
44
SidebarGroup,
55
SidebarGroupContent,

resources/js/pages/settings/layout.tsx

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,9 @@ import { Link } from "@inertiajs/react"
22
import { Button } from "@/components/ui/button"
33
import Heading from "@/components/heading";
44
import { cn } from "@/lib/utils"
5-
import { type NavItemType } from '@/types/navigation'
6-
5+
import { type NavItemType } from '@/types'
76
import { Separator } from "@/components/ui/separator"
87

9-
interface LayoutProps {
10-
children: React.ReactNode
11-
}
12-
138
const sidebarNavItems: NavItemType[] = [
149
{
1510
title: "Profile",
@@ -30,7 +25,9 @@ const sidebarNavItems: NavItemType[] = [
3025

3126
export 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

0 commit comments

Comments
 (0)