Browse Source

♻️ refactor(ui): rename address-selector to city-selector

- rename file from address-selector.tsx to city-selector.tsx
- update interface from AddressSelectorProps to CitySelectorProps
- rename component from AddressSelector to CitySelector
yourname 3 months ago
parent
commit
5b95320304
1 changed files with 2 additions and 2 deletions
  1. 2 2
      mini/src/components/ui/city-selector.tsx

+ 2 - 2
mini/src/components/ui/address-selector.tsx → mini/src/components/ui/city-selector.tsx

@@ -11,7 +11,7 @@ interface City {
   parentId: number
   parentId: number
 }
 }
 
 
-interface AddressSelectorProps {
+interface CitySelectorProps {
   provinceValue?: number
   provinceValue?: number
   cityValue?: number
   cityValue?: number
   districtValue?: number
   districtValue?: number
@@ -24,7 +24,7 @@ interface AddressSelectorProps {
   showLabels?: boolean
   showLabels?: boolean
 }
 }
 
 
-export const AddressSelector: React.FC<AddressSelectorProps> = ({
+export const CitySelector: React.FC<CitySelectorProps> = ({
   provinceValue,
   provinceValue,
   cityValue,
   cityValue,
   districtValue,
   districtValue,