diff --git a/packages/ui/components/data-portal/HoursDrawer/fieldArray.ts b/packages/ui/components/data-portal/HoursDrawer/fieldArray.ts index a18db550e5..7f67815fe4 100644 --- a/packages/ui/components/data-portal/HoursDrawer/fieldArray.ts +++ b/packages/ui/components/data-portal/HoursDrawer/fieldArray.ts @@ -1,17 +1,7 @@ import { DateTime, Interval } from 'luxon' -import { type Control, useFieldArray, UseFieldArrayReturn, type UseFormReturn } from 'react-hook-form' +import { type UseFormReturn } from 'react-hook-form' -import { type DayIndex, dayIndicies, type ZFormSchema } from './schema' - -// export const useDayFieldArray = (control: Control) => ({ -// '0': useFieldArray({ control, name: '0' }), -// '1': useFieldArray({ control, name: '1' }), -// '2': useFieldArray({ control, name: '2' }), -// '3': useFieldArray({ control, name: '3' }), -// '4': useFieldArray({ control, name: '4' }), -// '5': useFieldArray({ control, name: '5' }), -// '6': useFieldArray({ control, name: '6' }), -// }) +import { type DayIndex, type ZFormSchema } from './schema' export const defaultInterval = (tz: string | null) => { const interval = Interval.fromDateTimes( diff --git a/packages/ui/components/data-portal/HoursDrawer/index.tsx b/packages/ui/components/data-portal/HoursDrawer/index.tsx index 977ac48e61..921d567a2e 100644 --- a/packages/ui/components/data-portal/HoursDrawer/index.tsx +++ b/packages/ui/components/data-portal/HoursDrawer/index.tsx @@ -71,7 +71,7 @@ const sortedTimezoneData = timezoneData.sort((a, b) => { }) const _HoursDrawer = forwardRef(({ locationId, ...props }, ref) => { - const [opened, handler] = useDisclosure(true) //TODO: Change back to 'false' when done. + const [opened, handler] = useDisclosure(false) const [isSaved, setIsSaved] = useState(false) const [globalTz, setGlobalTz] = useState(null) // const [initialData, setInitialData] = useState(null) diff --git a/packages/ui/modals/UserSurvey/fields.tsx b/packages/ui/modals/UserSurvey/fields.tsx index 04c80d0c36..bc154ec11c 100644 --- a/packages/ui/modals/UserSurvey/fields.tsx +++ b/packages/ui/modals/UserSurvey/fields.tsx @@ -175,7 +175,7 @@ export const FormCountry = () => { const { t } = useTranslation(['common', 'country']) const { classes } = useStyles() const form = useUserSurveyFormContext() - console.log(selectOptions) + const handleCountrySelect = (event: string) => { form.setFieldValue('countryOriginId', event) }