|
@@ -13,7 +13,6 @@ import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, D
|
|
|
import { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage } from '@/client/components/ui/form';
|
|
import { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage } from '@/client/components/ui/form';
|
|
|
import { useForm } from 'react-hook-form';
|
|
import { useForm } from 'react-hook-form';
|
|
|
import { zodResolver } from '@hookform/resolvers/zod';
|
|
import { zodResolver } from '@hookform/resolvers/zod';
|
|
|
-import { z } from 'zod';
|
|
|
|
|
import { toast } from 'sonner';
|
|
import { toast } from 'sonner';
|
|
|
import { Skeleton } from '@/client/components/ui/skeleton';
|
|
import { Skeleton } from '@/client/components/ui/skeleton';
|
|
|
import { Switch } from '@/client/components/ui/switch';
|
|
import { Switch } from '@/client/components/ui/switch';
|
|
@@ -387,7 +386,7 @@ export const UsersPage = () => {
|
|
|
<FormItem>
|
|
<FormItem>
|
|
|
<FormLabel>昵称</FormLabel>
|
|
<FormLabel>昵称</FormLabel>
|
|
|
<FormControl>
|
|
<FormControl>
|
|
|
- <Input placeholder="请输入昵称" {...field} value={field.value || ''} />
|
|
|
|
|
|
|
+ <Input placeholder="请输入昵称" {...field} />
|
|
|
</FormControl>
|
|
</FormControl>
|
|
|
<FormMessage />
|
|
<FormMessage />
|
|
|
</FormItem>
|
|
</FormItem>
|
|
@@ -401,7 +400,7 @@ export const UsersPage = () => {
|
|
|
<FormItem>
|
|
<FormItem>
|
|
|
<FormLabel>邮箱</FormLabel>
|
|
<FormLabel>邮箱</FormLabel>
|
|
|
<FormControl>
|
|
<FormControl>
|
|
|
- <Input type="email" placeholder="请输入邮箱" {...field} value={field.value || ''} />
|
|
|
|
|
|
|
+ <Input type="email" placeholder="请输入邮箱" {...field} />
|
|
|
</FormControl>
|
|
</FormControl>
|
|
|
<FormMessage />
|
|
<FormMessage />
|
|
|
</FormItem>
|
|
</FormItem>
|
|
@@ -415,7 +414,7 @@ export const UsersPage = () => {
|
|
|
<FormItem>
|
|
<FormItem>
|
|
|
<FormLabel>手机号</FormLabel>
|
|
<FormLabel>手机号</FormLabel>
|
|
|
<FormControl>
|
|
<FormControl>
|
|
|
- <Input placeholder="请输入手机号" {...field} value={field.value || ''} />
|
|
|
|
|
|
|
+ <Input placeholder="请输入手机号" {...field} />
|
|
|
</FormControl>
|
|
</FormControl>
|
|
|
<FormMessage />
|
|
<FormMessage />
|
|
|
</FormItem>
|
|
</FormItem>
|
|
@@ -429,7 +428,7 @@ export const UsersPage = () => {
|
|
|
<FormItem>
|
|
<FormItem>
|
|
|
<FormLabel>真实姓名</FormLabel>
|
|
<FormLabel>真实姓名</FormLabel>
|
|
|
<FormControl>
|
|
<FormControl>
|
|
|
- <Input placeholder="请输入真实姓名" {...field} value={field.value || ''} />
|
|
|
|
|
|
|
+ <Input placeholder="请输入真实姓名" {...field} />
|
|
|
</FormControl>
|
|
</FormControl>
|
|
|
<FormMessage />
|
|
<FormMessage />
|
|
|
</FormItem>
|
|
</FormItem>
|
|
@@ -491,7 +490,7 @@ export const UsersPage = () => {
|
|
|
<FormItem>
|
|
<FormItem>
|
|
|
<FormLabel>用户名</FormLabel>
|
|
<FormLabel>用户名</FormLabel>
|
|
|
<FormControl>
|
|
<FormControl>
|
|
|
- <Input placeholder="请输入用户名" {...field} value={field.value || ''} />
|
|
|
|
|
|
|
+ <Input placeholder="请输入用户名" {...field} />
|
|
|
</FormControl>
|
|
</FormControl>
|
|
|
<FormMessage />
|
|
<FormMessage />
|
|
|
</FormItem>
|
|
</FormItem>
|
|
@@ -505,7 +504,7 @@ export const UsersPage = () => {
|
|
|
<FormItem>
|
|
<FormItem>
|
|
|
<FormLabel>昵称</FormLabel>
|
|
<FormLabel>昵称</FormLabel>
|
|
|
<FormControl>
|
|
<FormControl>
|
|
|
- <Input placeholder="请输入昵称" {...field} value={field.value || ''} />
|
|
|
|
|
|
|
+ <Input placeholder="请输入昵称" {...field} />
|
|
|
</FormControl>
|
|
</FormControl>
|
|
|
<FormMessage />
|
|
<FormMessage />
|
|
|
</FormItem>
|
|
</FormItem>
|
|
@@ -519,7 +518,7 @@ export const UsersPage = () => {
|
|
|
<FormItem>
|
|
<FormItem>
|
|
|
<FormLabel>邮箱</FormLabel>
|
|
<FormLabel>邮箱</FormLabel>
|
|
|
<FormControl>
|
|
<FormControl>
|
|
|
- <Input type="email" placeholder="请输入邮箱" {...field} value={field.value || ''} />
|
|
|
|
|
|
|
+ <Input type="email" placeholder="请输入邮箱" {...field} />
|
|
|
</FormControl>
|
|
</FormControl>
|
|
|
<FormMessage />
|
|
<FormMessage />
|
|
|
</FormItem>
|
|
</FormItem>
|
|
@@ -533,7 +532,7 @@ export const UsersPage = () => {
|
|
|
<FormItem>
|
|
<FormItem>
|
|
|
<FormLabel>手机号</FormLabel>
|
|
<FormLabel>手机号</FormLabel>
|
|
|
<FormControl>
|
|
<FormControl>
|
|
|
- <Input placeholder="请输入手机号" {...field} value={field.value || ''} />
|
|
|
|
|
|
|
+ <Input placeholder="请输入手机号" {...field} />
|
|
|
</FormControl>
|
|
</FormControl>
|
|
|
<FormMessage />
|
|
<FormMessage />
|
|
|
</FormItem>
|
|
</FormItem>
|
|
@@ -547,7 +546,7 @@ export const UsersPage = () => {
|
|
|
<FormItem>
|
|
<FormItem>
|
|
|
<FormLabel>真实姓名</FormLabel>
|
|
<FormLabel>真实姓名</FormLabel>
|
|
|
<FormControl>
|
|
<FormControl>
|
|
|
- <Input placeholder="请输入真实姓名" {...field} value={field.value || ''} />
|
|
|
|
|
|
|
+ <Input placeholder="请输入真实姓名" {...field} />
|
|
|
</FormControl>
|
|
</FormControl>
|
|
|
<FormMessage />
|
|
<FormMessage />
|
|
|
</FormItem>
|
|
</FormItem>
|