Add header component and side menu; update layout and styles

This commit is contained in:
2025-09-07 02:49:32 -04:00
parent 6b80865d6a
commit e61ba2b46a
27 changed files with 978 additions and 36 deletions

View File

@@ -1,5 +1,5 @@
import {
authenticateCredentialsThunk,
authenticateCredentials,
selectIsAuthenticated,
selectIsLoading,
selectApplicationId,
@@ -56,7 +56,7 @@ export const authenticateRequestMiddleware: Middleware = store => next => async
try {
console.log('[authenticateRequest] Attempting auto-authentication');
// Use the Redux thunk to properly update the state
const authResult = await store.dispatch(authenticateCredentialsThunk({applicationId, secret}) as any);
const authResult = await store.dispatch(authenticateCredentials({applicationId, secret}) as any);
if (authResult.type.endsWith('/rejected') || authResult.payload === 'Authentication failed') {
console.log('[authenticateRequest] Authentication failed');