Skip to content

Commit

Permalink
chore(fe): change path type
Browse files Browse the repository at this point in the history
  • Loading branch information
jwoojin9 committed Jan 28, 2025
1 parent b78a252 commit 1c724eb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ interface GroupSideBarProps {
export function GroupSideBar({ groupId }: GroupSideBarProps) {
const pathname = usePathname()

const navItems: { name: string; path: Route; icon: IconType }[] = [
const navItems: { name: string; path: string; icon: IconType }[] = [
{ name: 'Home', path: `/admin/group/${groupId}`, icon: MdHome },
{
name: 'Notice',
Expand Down Expand Up @@ -61,7 +61,7 @@ export function GroupSideBar({ groupId }: GroupSideBarProps) {
{navItems.map((item) => (
<Link
key={item.name}
href={item.path}
href={item.path as Route}
className={cn(
'rounded px-4 py-2 transition',
pathname === item.path
Expand Down

0 comments on commit 1c724eb

Please sign in to comment.