Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add download and delete all buttons to sign-on log UI (#3231)
Adds `Download sign-on log` and `Clear sign-on log` buttons to the UI, making it easy for admins to manage their sign-on log. ![image](https://user-images.githubusercontent.com/14320932/222138757-284c3f79-142f-4e25-847d-666938d4c12c.png) ![image](https://user-images.githubusercontent.com/14320932/222138863-bccf6343-41dd-4068-95b0-fac3ce37313f.png)
- Loading branch information
Showing
3 changed files
with
127 additions
and
14 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
.../component/signOnLog/SignOnLogTable/SignOnLogDeleteAllDialog/SignOnLogDeleteAllDialog.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,28 @@ | ||
import { Dialogue } from 'component/common/Dialogue/Dialogue'; | ||
|
||
interface IServiceAccountDeleteAllDialogProps { | ||
open: boolean; | ||
setOpen: React.Dispatch<React.SetStateAction<boolean>>; | ||
onConfirm: () => void; | ||
} | ||
|
||
export const SignOnLogDeleteAllDialog = ({ | ||
open, | ||
setOpen, | ||
onConfirm, | ||
}: IServiceAccountDeleteAllDialogProps) => ( | ||
<Dialogue | ||
title="Clear sign-on log?" | ||
open={open} | ||
primaryButtonText="Clear sign-on log" | ||
secondaryButtonText="Cancel" | ||
onClick={onConfirm} | ||
onClose={() => { | ||
setOpen(false); | ||
}} | ||
> | ||
You are about to clear the sign-on log. | ||
<br /> | ||
This will delete all the sign-on events. | ||
</Dialogue> | ||
); |
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