diff --git a/apps/hackathon/src/app/teams/[teamId]/edit/page.tsx b/apps/hackathon/src/app/teams/[teamId]/edit/page.tsx index edde57a..92cb574 100644 --- a/apps/hackathon/src/app/teams/[teamId]/edit/page.tsx +++ b/apps/hackathon/src/app/teams/[teamId]/edit/page.tsx @@ -5,7 +5,8 @@ import { useNavigate, useParams } from 'react-router'; import { useForm, Controller } from 'react-hook-form'; import { teamUpdateSchema, TTeamUpdateForm, useUpdateTeam, useTeamById, ETeamVisibility, useUploadFile, useAuthStore } from '@imphnen-frontend-service/service'; import { zodResolver } from '@hookform/resolvers/zod'; -import INDONESIAN_CITIES from '../../../../constants/cities'; + +import { CitySelect } from '../../../../components/city-select'; const EditTeamPage: FC = (): ReactElement => { const { teamId } = useParams<{ teamId: string }>(); @@ -229,22 +230,12 @@ const EditTeamPage: FC = (): ReactElement => { control={form.control} name="city" render={({ field, fieldState }) => ( -
- - {fieldState.error && ( -

{fieldState.error.message}

- )} -
+ )} />