feat: implement category history widget and loading state for category history page

This commit is contained in:
Felipe Coutinho
2025-11-28 13:42:21 +00:00
parent 302521ce14
commit cf5a0b7745
12 changed files with 808 additions and 34 deletions

View File

@@ -39,6 +39,7 @@ type NavItem = {
avatarUrl?: string | null;
isShared?: boolean;
key?: string;
icon?: RemixiconComponentType;
}[];
};
@@ -158,7 +159,9 @@ export function NavMain({ sections }: { sections: NavSection[] }) {
href={buildHrefWithPeriod(subItem.url)}
className="flex items-center gap-2"
>
{subItem.avatarUrl !== undefined ? (
{subItem.icon ? (
<subItem.icon className="size-4" />
) : subItem.avatarUrl !== undefined ? (
<Avatar className="size-5 border border-border/60 bg-background">
<AvatarImage
src={avatarSrc}