refactor: remove schedule from barber data and update navigation icons to use Ionicons
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user