refactor: remove schedule from barber data and update navigation icons to use Ionicons

This commit is contained in:
2026-05-13 10:35:28 +01:00
parent 916e068ebe
commit b5e942b643
2 changed files with 12 additions and 9 deletions

View File

@@ -441,7 +441,6 @@ export const AppProvider = ({ children }: { children: React.ReactNode }) => {
shop_id: shopId,
name: barber.name,
specialties: barber.specialties,
schedule: barber.schedule || [],
image_url: barber.imageUrl,
}]);
if (error) {
@@ -455,7 +454,6 @@ export const AppProvider = ({ children }: { children: React.ReactNode }) => {
await supabase.from('barbers').update({
name: barber.name,
specialties: barber.specialties,
schedule: barber.schedule,
image_url: barber.imageUrl,
}).eq('id', barber.id);
await refreshShops();