Skip to content

Commit 4d82682

Browse files
committed
move SettingsSidebarNavItem to types/index.d.ts
1 parent 7b477cb commit 4d82682

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

resources/js/layouts/settings/layout.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,10 @@ import Heading from '@/components/heading';
22
import { Button } from '@/components/ui/button';
33
import { Separator } from '@/components/ui/separator';
44
import { cn } from '@/lib/utils';
5+
import { type SettingsSidebarNavItem } from '@/types';
56
import { Link } from '@inertiajs/react';
67
import { type PropsWithChildren } from 'react';
78

8-
interface SettingsSidebarNavItem {
9-
title: string;
10-
route: string;
11-
}
12-
139
const sidebarNavItems: SettingsSidebarNavItem[] = [
1410
{
1511
title: 'Profile',

resources/js/types/index.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ export interface NavItem {
2222
isActive?: boolean;
2323
}
2424

25+
interface SettingsSidebarNavItem {
26+
title: string;
27+
route: string;
28+
}
29+
2530
export interface SharedData {
2631
name: string;
2732
quote: { message: string; author: string };

0 commit comments

Comments
 (0)