File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
pages/admin/users/internal Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 1+ import { toast } from "@/shadcn/hooks/use-toast" ;
12import { Dialog , Transition } from "@headlessui/react" ;
23import { XMarkIcon } from "@heroicons/react/24/outline" ;
34import { getCookie } from "cookies-next" ;
4- import React , { Fragment , useState } from "react" ;
5+ import { Fragment , useState } from "react" ;
56
67export default function ResetPassword ( { user } ) {
78 const [ open , setOpen ] = useState ( false ) ;
@@ -25,17 +26,15 @@ export default function ResetPassword({ user }) {
2526 . then ( ( res ) => {
2627 if ( res . success ) {
2728 toast ( {
28- variant : "success " ,
29+ variant : "default " ,
2930 title : "Password Reset Successful" ,
3031 description : "The password has been updated successfully." ,
31- autoClose : 5000 ,
3232 } ) ;
3333 } else {
3434 toast ( {
3535 variant : "destructive" ,
3636 title : "Uh oh! Something went wrong." ,
3737 description : "There was a problem with your request." ,
38- action : < ToastAction altText = "Try again" > Try again</ ToastAction > ,
3938 } ) ;
4039 }
4140 } ) ;
Original file line number Diff line number Diff line change 88 usePagination ,
99 useTable ,
1010} from "react-table" ;
11- import ResetPassword from "../../../../components/ResetPassword" ;
11+ import ResetPassword from "../../../../components// ResetPassword" ;
1212import UpdateUserModal from "../../../../components/UpdateUserModal" ;
1313
1414const fetchUsers = async ( token ) => {
You can’t perform that action at this time.
0 commit comments