|
@@ -12,6 +12,7 @@ import { Card } from '@/components/ui/card'
|
|
|
import { Button } from '@/components/ui/button'
|
|
import { Button } from '@/components/ui/button'
|
|
|
import { Form, FormField, FormItem, FormLabel, FormControl, FormMessage } from '@/components/ui/form'
|
|
import { Form, FormField, FormItem, FormLabel, FormControl, FormMessage } from '@/components/ui/form'
|
|
|
import { Input } from '@/components/ui/input'
|
|
import { Input } from '@/components/ui/input'
|
|
|
|
|
+import { Switch } from '@/components/ui/switch'
|
|
|
import { useAuth } from '@/utils/auth'
|
|
import { useAuth } from '@/utils/auth'
|
|
|
import { CitySelector } from '@/components/ui/city-selector'
|
|
import { CitySelector } from '@/components/ui/city-selector'
|
|
|
|
|
|
|
@@ -221,7 +222,7 @@ export default function AddressEditPage() {
|
|
|
<View className="flex items-center justify-between">
|
|
<View className="flex items-center justify-between">
|
|
|
<FormLabel>设为默认地址</FormLabel>
|
|
<FormLabel>设为默认地址</FormLabel>
|
|
|
<FormControl>
|
|
<FormControl>
|
|
|
- <switch
|
|
|
|
|
|
|
+ <Switch
|
|
|
checked={field.value}
|
|
checked={field.value}
|
|
|
onChange={field.onChange}
|
|
onChange={field.onChange}
|
|
|
color="#1976D2"
|
|
color="#1976D2"
|