-
Notifications
You must be signed in to change notification settings - Fork 265
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1013 from harjibbolar26/fix/superadmin-user-overv…
…iew-update fix: update user overview in use rmanagement
- Loading branch information
Showing
4 changed files
with
89 additions
and
22 deletions.
There are no files selected for viewing
36 changes: 36 additions & 0 deletions
36
src/app/dashboard/(admin)/admin/(overview)/users/component/dialogue/delete-successful.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import { Button } from "~/components/common/common-button"; | ||
import { | ||
Dialog, | ||
DialogContent, | ||
DialogDescription, | ||
DialogHeader, | ||
DialogTitle, | ||
} from "~/components/ui/dialog"; | ||
|
||
const DeleteSuccessfulDialog = ({ onClose }: { onClose: () => void }) => { | ||
return ( | ||
<Dialog open onOpenChange={onClose}> | ||
<DialogContent> | ||
<DialogHeader> | ||
<DialogTitle className="text-lg font-semibold leading-7 text-slate-900"> | ||
User Deleted Successfully! | ||
</DialogTitle> | ||
<DialogDescription className="text-sm font-normal leading-tight text-slate-500"> | ||
Their account has been deleted, and they will no longer be able to | ||
access the platform. | ||
</DialogDescription> | ||
</DialogHeader> | ||
<div className="flex w-full items-center justify-end"> | ||
<Button | ||
className="ml-2 flex items-center justify-end gap-2.5 rounded-md bg-primary px-4 py-2 text-sm font-medium leading-normal text-white" | ||
onClick={onClose} | ||
> | ||
Done | ||
</Button> | ||
</div> | ||
</DialogContent> | ||
</Dialog> | ||
); | ||
}; | ||
|
||
export default DeleteSuccessfulDialog; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters