Refresh invite operations workspace
Magent CI/CD / verify (push) Successful in 10m26s
Magent CI/CD / deploy-prod (push) Skipped
Magent CI/CD / deploy-beta (push) Successful in 17s

This commit is contained in:
2026-09-01 15:12:37 +12:00
parent 5de14b1cb7
commit c49a149cfd
5 changed files with 518 additions and 57 deletions
+10 -2
View File
@@ -1,7 +1,7 @@
'use client'
import { useEffect, useState } from 'react'
import { usePathname } from 'next/navigation'
import { useEffect, useState } from 'react'
import { authFetch, clearToken, getApiBase, getToken } from '../lib/auth'
export default function HeaderActions() {
@@ -55,10 +55,18 @@ export default function HeaderActions() {
? []
: role === 'admin'
? [
{
href: '/admin/invites',
label: 'Invites',
match: (path: string) => path.startsWith('/admin/invites') || path.startsWith('/admin/profiles'),
},
{
href: '/admin',
label: 'Config',
match: (path: string) => path.startsWith('/admin'),
match: (path: string) =>
path.startsWith('/admin') &&
!path.startsWith('/admin/invites') &&
!path.startsWith('/admin/profiles'),
},
]
: [