Skip to content

Commit

Permalink
refactor(frontend): Update import path following rename of useSidebar…
Browse files Browse the repository at this point in the history
… hook

The useSidebar hook has been renamed to use-sidebar. Updated the
import path in sidebar.tsx and side-nav.tsx files to reflect this
change. The move helps to maintain the codebase consistency and
readability by using kebab-case for file names.

Refs: #1
  • Loading branch information
maikbasel committed Jan 7, 2024
1 parent 5f264f3 commit 16ae006
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/sections/dashboard/components/sidebar/side-nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
AccordionItem,
AccordionTrigger,
} from '@/sections/dashboard/components/sidebar/subnav-accordion';
import { useSidebar } from '@/sections/dashboard/hooks/useSidebar';
import { useSidebar } from '@/sections/dashboard/hooks/use-sidebar';

import { type LucideIcon } from 'lucide-react';

Expand Down
2 changes: 1 addition & 1 deletion src/sections/dashboard/components/sidebar/sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { cn } from '@/lib/utils';
import { Separator } from '@/components/ui/separator';
import { Button } from '@/components/ui/button';
import { ChevronRight, LayoutDashboard, Settings } from 'lucide-react';
import { useSidebar } from '@/sections/dashboard/hooks/useSidebar';
import { useSidebar } from '@/sections/dashboard/hooks/use-sidebar';
import {
NavItem,
SideNav,
Expand Down
File renamed without changes.

0 comments on commit 16ae006

Please sign in to comment.