Skip to content

Commit

Permalink
refactor(frontend): Correct property name from 'isChidren' to 'hasChi…
Browse files Browse the repository at this point in the history
…ldren' in side-nav

Fixed a typo in the property name 'isChidren', correcting it to
'hasChildren'. This change clarifies the property's purpose in the
NavItem interface and fixes how it is being evaluated in the SideNav
component.

Refs: #1
  • Loading branch information
maikbasel committed Jan 13, 2024
1 parent 31b52bb commit 4da5a14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sections/dashboard/components/sidebar/side-nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export interface NavItem {
href: string;
icon: LucideIcon;
color?: string;
isChidren?: boolean;
hasChildren?: boolean;
children?: NavItem[];
}

Expand Down Expand Up @@ -49,7 +49,7 @@ export function SideNav({ items, setOpen, className }: Readonly<SideNavProps>) {
return (
<nav className='space-y-2'>
{items.map((item) =>
item.isChidren ? (
item.hasChildren ? (
<Accordion
type='single'
collapsible
Expand Down

0 comments on commit 4da5a14

Please sign in to comment.