feat: actualizar proyecto completo

This commit is contained in:
2026-09-01 16:12:48 -04:00
parent ca6b111bd0
commit 6c848356ef
8 changed files with 304 additions and 58 deletions
+6
View File
@@ -58,6 +58,7 @@ interface AuthContextValue {
canControlPricingSummary: boolean;
canManageTariffCatalog: boolean;
canViewTeamHours: boolean;
canCreateProjects: boolean;
loginWithGoogle: () => Promise<void>;
logout: () => Promise<void>;
}
@@ -204,6 +205,10 @@ export function AuthProvider({ children }: { children: ReactNode }) {
() => access?.canViewTeamHours === true,
[access?.canViewTeamHours],
);
const canCreateProjects = useMemo(
() => access?.canCreateProjects === true,
[access?.canCreateProjects],
);
return (
<AuthContext.Provider
@@ -217,6 +222,7 @@ export function AuthProvider({ children }: { children: ReactNode }) {
canControlPricingSummary,
canManageTariffCatalog,
canViewTeamHours,
canCreateProjects,
loginWithGoogle,
logout,
}}