From c685ee8dd304b53c54b3661c2dc96f470af25737 Mon Sep 17 00:00:00 2001 From: Alberto Duarte Delgado Date: Tue, 21 Apr 2026 12:22:35 +0100 Subject: feat(offices): restaurar filtro de favoritos fixes #14 --- src/features/auth/hooks/useLogin.ts | 2 +- src/features/auth/hooks/useRegister.ts | 2 +- src/features/offices/types.ts | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src/features') diff --git a/src/features/auth/hooks/useLogin.ts b/src/features/auth/hooks/useLogin.ts index 6af76c5..c83618f 100644 --- a/src/features/auth/hooks/useLogin.ts +++ b/src/features/auth/hooks/useLogin.ts @@ -19,7 +19,7 @@ export function useLogin() { password, }); - router.replace('/(protected)/home'); + router.replace('/home'); } catch (err) { setError(getErrorMessage(err, 'No se pudo iniciar sesión')); } finally { diff --git a/src/features/auth/hooks/useRegister.ts b/src/features/auth/hooks/useRegister.ts index fe83d85..80899d9 100644 --- a/src/features/auth/hooks/useRegister.ts +++ b/src/features/auth/hooks/useRegister.ts @@ -21,7 +21,7 @@ export function useRegister() { password, }); - router.replace('/(protected)/home'); + router.replace('/home'); } catch (err) { setError(getErrorMessage(err, 'No se pudo registrar el usuario')); } finally { diff --git a/src/features/offices/types.ts b/src/features/offices/types.ts index 9f9d039..59820aa 100644 --- a/src/features/offices/types.ts +++ b/src/features/offices/types.ts @@ -3,5 +3,6 @@ export type Office = { name: string; location: string; capacity: number; + available?: boolean; description?: string; }; -- cgit v1.2.3-54-g00ecf