feat(routing): ✨ Add/modify worker-related routes in Marketplace frontend navigation
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
parent
817b7dbf57
commit
93073e6ac3
1 changed files with 7 additions and 5 deletions
|
|
@ -125,10 +125,8 @@ const AnalyticsFunnelPage = lazy(() => import('@/features/worker/analytics/pages
|
|||
const WorkerReviewsPage = lazy(
|
||||
() => import('@features/worker/pages/WorkerReviewsPage')
|
||||
);
|
||||
const NotificationsPage = lazy(() =>
|
||||
import('@features/notifications/pages/NotificationsPage').then((m) => ({
|
||||
default: m.NotificationsPage,
|
||||
}))
|
||||
const WorkerNotificationsPage = lazy(
|
||||
() => import('@features/worker/pages/WorkerNotificationsPage')
|
||||
);
|
||||
|
||||
// ============================================
|
||||
|
|
@ -316,7 +314,7 @@ export const WorkerRoutes = () => {
|
|||
======================================== */}
|
||||
|
||||
<Route path="/reviews" element={<WorkerReviewsPage />} />
|
||||
<Route path="/notifications" element={<NotificationsPage />} />
|
||||
<Route path="/notifications" element={<WorkerNotificationsPage />} />
|
||||
|
||||
{/* ========================================
|
||||
ACCOUNT SERVICES
|
||||
|
|
@ -361,6 +359,10 @@ export const WorkerRoutes = () => {
|
|||
element={<Navigate to="/analytics" replace />}
|
||||
/>
|
||||
<Route path="/worker/reviews" element={<Navigate to="/reviews" replace />} />
|
||||
<Route
|
||||
path="/worker/notifications"
|
||||
element={<Navigate to="/notifications" replace />}
|
||||
/>
|
||||
<Route
|
||||
path="/worker/about"
|
||||
element={<Navigate to="/about" replace />}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue