Skip to content

Commit

Permalink
fix error, add link clickable
Browse files Browse the repository at this point in the history
  • Loading branch information
docimin committed Aug 29, 2024
1 parent 82bb714 commit f7f217d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 19 deletions.
2 changes: 1 addition & 1 deletion src/app/[locale]/(main)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default async function Home({
d="M.5 200V.5H200"
fill="none"
stroke="#6b7280"
stroke-opacity="0.5"
strokeOpacity="0.5"
/>
</pattern>
</defs>
Expand Down
38 changes: 20 additions & 18 deletions src/components/header/header-resizable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import {
DropdownMenuTrigger,
} from '@/components/ui/dropdown-menu'
import { Account, UserData } from '@/utils/types/models'
import { useRouter } from '@/navigation'
import { Link, useRouter } from '@/navigation'

export default function SidebarResizable({
defaultLayout = [265, 440, 655],
Expand Down Expand Up @@ -86,23 +86,25 @@ export default function SidebarResizable({
)}
>
<div>
<div
className={cn(
'flex h-[52px] items-center',
isCollapsed ? 'h-[52px] justify-center' : 'px-2 ml-2'
)}
>
<Image
src={'/logos/Headpat_Logo_web_128x128_240518-05.png'}
width={32}
height={32}
alt={'Headpat logo'}
className={'rounded-full'}
/>
<span className={cn('ml-2', isCollapsed && 'hidden')}>
Headpat
</span>
</div>
<Link href={'/'}>
<div
className={cn(
'flex h-[52px] items-center',
isCollapsed ? 'h-[52px] justify-center' : 'px-2 ml-2'
)}
>
<Image
src={'/logos/Headpat_Logo_web_128x128_240518-05.png'}
width={32}
height={32}
alt={'Headpat logo'}
className={'rounded-full'}
/>
<span className={cn('ml-2', isCollapsed && 'hidden')}>
Headpat
</span>
</div>
</Link>
<Separator />
</div>
<ScrollArea className={'h-full overflow-auto'}>
Expand Down

0 comments on commit f7f217d

Please sign in to comment.