Phase 3.3: Add Admin Trades page
New /admin/trades page for managing exchange trades: - Upcoming trades tab with user contact info - History tab with status/user search filters - Complete/No-show/Cancel actions for admin - Trade details: direction, amounts, rates, premium Update navigation: - Admin home redirects to /admin/trades - Regular user home redirects to /exchange - Header shows 'Trades' for admin
This commit is contained in:
parent
3785d6242d
commit
d6002b0cfc
3 changed files with 607 additions and 4 deletions
|
|
@ -22,9 +22,9 @@ export default function Home() {
|
|||
|
||||
// Redirect based on role
|
||||
if (hasRole(ADMIN)) {
|
||||
router.replace("/admin/appointments");
|
||||
router.replace("/admin/trades");
|
||||
} else if (hasRole(REGULAR)) {
|
||||
router.replace("/booking");
|
||||
router.replace("/exchange");
|
||||
} else {
|
||||
// User with no roles - redirect to login
|
||||
router.replace("/login");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue