feat: update campaign types to include user_id_nickname and add comments and signature item interfaces feat: improve campaign detail page with comments functionality and remove comment feature feat: refactor campaigns page to use new campaign service and update tab labels to Persian feat: enhance user profile page with image upload functionality and improved form handling fix: update router paths for campaign detail page feat: implement user authentication context and protected route handling feat: add global types for token management feat: create utility functions for image handling and uploading
33 lines
887 B
TypeScript
33 lines
887 B
TypeScript
import type { AppRoute } from "@core/types/router.type";
|
|
import { DashboardLayout } from "../layouts";
|
|
import CampaignsPage from "../pages/campaigns";
|
|
import CampaignDetailPage from "../pages/campaigns/detail";
|
|
import DashboardPage from "../pages/main-page";
|
|
import ProfilePage from "../pages/profile";
|
|
import { DASHBOARD_ROUTE } from "./route.constant";
|
|
|
|
export const dashboardRoutes: AppRoute[] = [
|
|
{
|
|
path: DASHBOARD_ROUTE.sub,
|
|
element: <DashboardLayout />,
|
|
children: [
|
|
{
|
|
path: DASHBOARD_ROUTE.dashboard,
|
|
element: <DashboardPage />,
|
|
},
|
|
{
|
|
path: DASHBOARD_ROUTE.profile,
|
|
element: <ProfilePage />,
|
|
},
|
|
{
|
|
path: DASHBOARD_ROUTE.campaigns,
|
|
element: <CampaignsPage />,
|
|
},
|
|
{
|
|
path: `${DASHBOARD_ROUTE.campaigns}/:id`,
|
|
element: <CampaignDetailPage />,
|
|
},
|
|
],
|
|
},
|
|
];
|