Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions components/layout/MobileNavigation/MobileNavigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,9 @@ export const MobileNavigation = () => {
`${readexPro.className} font-thin h-16 text-xs flex flex-col gap-x-3 gap-y-2 rounded-md p-2 text-sm leading-3 font-semibold items-center cursor-pointer`
}
onClick={() => handleNavClick(item.href)}>
{item.img ? (
{
<DynamicIcon name={item.img} width={40} height={40} className={`-m-1`} />
) : (
<Image
src={item.current ? item.iconActive : item.icon}
alt="card"
className={`object-fit w-11 h-11 -m-2`}
/>
)}
}
{item.name}
</Link>
</li>
Expand Down
10 changes: 2 additions & 8 deletions components/layout/SidebarNavigation/SidebarNavigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,9 @@ export const SidebarNavigation = ({ isLoading, auth }: any) => {
readexPro.className
} font-normal group flex gap-x-3 rounded-md p-2 text-sm leading-6 items-center cursor-pointer`}
onClick={() => handleNavClick(item.href)}>
{item.img ? (
{
<DynamicIcon name={item.img} width={24} height={24} />
) : (
<Image
src={item.current ? item.iconActive : item.icon}
alt="card"
className={`object-fit w-8 h-8 -m-1`}
/>
)}
}
{item.name}
</Link>
</li>
Expand Down