- Introduced `Field` and `Label` components for better form handling. - Refactored `Input` and `Textarea` components to use forward refs and improved styling. - Updated `PendingSubmitButton` to use the new `Button` component. - Enhanced `Skeleton` component for better layout handling. - Revamped `Toast` component to support live regions and improved accessibility. - Updated sidebar configuration to use typed icons. - Added phase 3 UI boundary checks to prevent usage of deprecated imports. - Implemented new authentication action handler for better cookie management. - Improved setup logic for freelancer accounts with repair functionality.
36 lines
796 B
TypeScript
36 lines
796 B
TypeScript
import {
|
||
FolderKanban,
|
||
Sparkles,
|
||
CheckSquare2,
|
||
type LucideIcon,
|
||
} from "lucide-react";
|
||
|
||
export type PortalSidebarNavItem = {
|
||
title: string;
|
||
href?: string;
|
||
icon?: LucideIcon;
|
||
items?: PortalSidebarNavItem[];
|
||
};
|
||
|
||
export type PortalSidebarNavGroup = {
|
||
title: string;
|
||
items: PortalSidebarNavItem[];
|
||
};
|
||
|
||
export const portalSidebarData: PortalSidebarNavGroup[] = [
|
||
{
|
||
title: "GENEL BAKIŞ",
|
||
items: [
|
||
{ title: "Dashboard", href: "/portal", icon: Sparkles },
|
||
],
|
||
},
|
||
{
|
||
title: "SÜREÇLER",
|
||
items: [
|
||
{ title: "Projeleriniz", href: "/portal/projects", icon: FolderKanban },
|
||
{ title: "Yapılan Görevler", href: "/portal/tasks", icon: CheckSquare2 },
|
||
{ title: "Revizyon Talepleri", href: "/portal/revisions", icon: Sparkles },
|
||
],
|
||
}
|
||
];
|