refactor: 移除user profile对话框
This commit is contained in:
@@ -32,7 +32,6 @@ import { useRouter } from "next/navigation"
|
||||
import SetPassword from "./nav-user/SetPassword"
|
||||
import { useState } from "react"
|
||||
import { User } from "@/lib/types/user"
|
||||
import UserProfile from "./nav-user/UserProfile"
|
||||
import { AuthAPI } from "@/lib/api/client"
|
||||
import { useUserStore } from "@/store/useUserStore"
|
||||
|
||||
@@ -135,7 +134,7 @@ export function NavUser({ user }: { user: User | null }) {
|
||||
</SidebarMenuItem>
|
||||
</SidebarMenu >
|
||||
|
||||
<UserProfile open={userProfileOpen} onOpenChange={setUserProfileOpen} />
|
||||
{/* <UserProfile open={userProfileOpen} onOpenChange={setUserProfileOpen} /> */}
|
||||
<SetPassword open={passwordOpen} onOpenChange={setPasswordOpen} />
|
||||
</>
|
||||
)
|
||||
|
||||
@@ -1,34 +0,0 @@
|
||||
import { DialogProps } from "@radix-ui/react-dialog";
|
||||
import React, { FC } from "react";
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
DialogDescription,
|
||||
DialogFooter,
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
} from "@/components/ui/dialog"
|
||||
import { Button } from "../ui/button";
|
||||
|
||||
export default function UserProfile({ onOpenChange, ...props }: React.ComponentProps<FC<DialogProps>>) {
|
||||
return (
|
||||
<Dialog onOpenChange={onOpenChange} {...props}>
|
||||
<DialogContent className="sm:max-w-[425px]">
|
||||
<DialogHeader>
|
||||
<DialogTitle>账户信息</DialogTitle>
|
||||
<DialogDescription>
|
||||
新密码长度在6-32位之间,且至少包含一个字母和一个数字,可以包含特殊字符
|
||||
</DialogDescription>
|
||||
</DialogHeader>
|
||||
|
||||
<div>
|
||||
开发中...
|
||||
</div>
|
||||
|
||||
<DialogFooter>
|
||||
<Button type="button" variant='secondary' onClick={() => onOpenChange?.(false)}>返回</Button>
|
||||
</DialogFooter>
|
||||
</DialogContent>
|
||||
</Dialog >
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user