diff --git a/src/client/pages/DeveloperDashboard.tsx b/src/client/pages/DeveloperDashboard.tsx index 0987d15..5eee8fe 100644 --- a/src/client/pages/DeveloperDashboard.tsx +++ b/src/client/pages/DeveloperDashboard.tsx @@ -419,7 +419,7 @@ export const DeveloperDashboard: React.FC = () => {
{admins.map(admin => ( -
+
{admin.name.charAt(0).toUpperCase()}
@@ -441,7 +441,7 @@ export const DeveloperDashboard: React.FC = () => {
{commonUsers.map(user => ( -
+
{ - const navigate = useNavigate(); - - useEffect(() => { - navigate('/', { replace: true }); - }, [navigate]); - - return null; -}; diff --git a/src/client/services/systemSettingsService.ts b/src/client/services/systemSettingsService.ts index c7e18b0..79a0792 100644 --- a/src/client/services/systemSettingsService.ts +++ b/src/client/services/systemSettingsService.ts @@ -15,7 +15,7 @@ export const systemSettingsService = { }, updateSettings: async (settings: Partial): Promise => { - // Axios interceptors in api.ts automatically handle x-clerk-user-id and x-organization-id headers + // Axios interceptors handle organization-id headers const response = await api.put('/system-settings', settings); return response.data; }, @@ -51,7 +51,7 @@ export const systemSettingsService = { export interface GlobalUser { _id: string; - clerkId: string; + id: string; name: string; email: string; role: string; @@ -69,7 +69,7 @@ export interface GlobalOrganization { name: string; email: string; role: 'admin' | 'user' | 'guest'; - clerkUserId: string; + userId: string; isBanned: boolean; }[]; } diff --git a/src/client/types.ts b/src/client/types.ts index 9a314ff..67e8ac0 100644 --- a/src/client/types.ts +++ b/src/client/types.ts @@ -190,7 +190,6 @@ export type UserRole = 'guest' | 'user' | 'admin'; export interface AppUser { id: string; _id?: string; - clerkId?: string; logtoId?: string; email: string; name: string;