feat: add login and register + add links from primary page
This commit is contained in:
3
src/features/auth/hooks/useIsAuthenticated.ts
Normal file
3
src/features/auth/hooks/useIsAuthenticated.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export function useIsAuthenticated(): boolean {
|
||||
return localStorage.getItem('isAuthenticated') === 'true'
|
||||
}
|
||||
@@ -1,2 +1,3 @@
|
||||
export { registrationStart, registrationComplete } from './api/registrationApi'
|
||||
export type { RegistrationStartPayload, RegistrationCompletePayload } from './api/registrationApi'
|
||||
export { useIsAuthenticated } from './hooks/useIsAuthenticated'
|
||||
|
||||
Reference in New Issue
Block a user