From a14f0e325cc05113ebd14fc18fdc22a2ed078ee7 Mon Sep 17 00:00:00 2001 From: Celine Ji-Won Choi <107969914+celinechoiii@users.noreply.github.com> Date: Sun, 17 Nov 2024 21:41:48 -0800 Subject: [PATCH] refactor: delete comments --- utils/onboardingContext.tsx | 38 ------------------------------------- 1 file changed, 38 deletions(-) diff --git a/utils/onboardingContext.tsx b/utils/onboardingContext.tsx index 5c0d94e..a271320 100644 --- a/utils/onboardingContext.tsx +++ b/utils/onboardingContext.tsx @@ -60,41 +60,3 @@ export const OnboardingProvider = ({ children }: { children: ReactNode }) => { ); }; - -// const submitOnboardingData = async () => { -// try { -// const { data: volunteerData, error: volunteerError } = await supabase -// .from('volunteers') -// .insert([ -// { -// first_name: generalInfo.firstName, -// last_name: generalInfo.lastName, -// phone_number: generalInfo.phoneNumber, -// }, -// ]); - -// if (volunteerError) throw volunteerError; - -// const { data: preferencesData, error: preferencesError } = await supabase -// .from('volunteer_preferences') -// .insert([ -// { -// facility_type: preferences.facilityType, -// city: preferences.location, -// audience: preferences.audience, -// instruments: preferences.preferredEquipment, -// type_of_act: preferences.typeOfAct, -// genre: preferences.genre, -// }, -// ]); - -// if (preferencesError) throw preferencesError; - -// console.log('Onboarding data submitted successfully:', { -// volunteerData, -// preferencesData, -// }); -// } catch (error) { -// console.error('Error submitting onboarding data:', error); -// } -// };