feat: add stock management and form resets while removing deprecated barber_ids and updating UI styles

This commit is contained in:
2026-05-13 10:30:40 +01:00
parent 42995acd8e
commit 916e068ebe
3 changed files with 131 additions and 69 deletions

View File

@@ -388,7 +388,7 @@ export const AppProvider = ({ children }: { children: React.ReactNode }) => {
name: service.name,
price: service.price,
duration: service.duration,
barber_ids: service.barberIds || [],
// Removed barber_ids as it doesn't exist in the current schema
}]);
if (error) {
console.error('Erro addService:', error);
@@ -402,7 +402,6 @@ export const AppProvider = ({ children }: { children: React.ReactNode }) => {
name: service.name,
price: service.price,
duration: service.duration,
barber_ids: service.barberIds || [],
}).eq('id', service.id);
await refreshShops();
};