diff --git a/src/components/register/RegionList.tsx b/src/components/register/RegionList.tsx index ba551b0..cb44ca1 100644 --- a/src/components/register/RegionList.tsx +++ b/src/components/register/RegionList.tsx @@ -2,13 +2,15 @@ import { useGetRegions } from '@/queries/useGetRegions.ts'; import { regions } from '@/mocks/mockDatas/regions.ts'; import { useCallback, useEffect, useState } from 'react'; import { debounce } from 'es-toolkit'; +import { cn } from '@/utils.ts'; interface RegionListProps { search: string; + selectedLocation: { id: number; name: string } | null; onSelectLocation: (location: (typeof regions)[number]) => void; } -export const RegionList = ({ onSelectLocation, search }: RegionListProps) => { +export const RegionList = ({ onSelectLocation, search, selectedLocation }: RegionListProps) => { const [deferredSearch, setSearch] = useState(search); const { data: locationList } = useGetRegions(deferredSearch); @@ -24,9 +26,15 @@ export const RegionList = ({ onSelectLocation, search }: RegionListProps) => { return (