generated from bcgov/quickstart-openshift
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ORV2-2297: Special Authorization Page with LOA View and Management (#…
…1512) Co-authored-by: gchauhan-aot <[email protected]> Co-authored-by: praju-aot <[email protected]> Co-authored-by: Praveen Raju <[email protected]>
- Loading branch information
1 parent
015b837
commit 1b2c830
Showing
83 changed files
with
3,821 additions
and
226 deletions.
There are no files selected for viewing
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
3 changes: 3 additions & 0 deletions
3
frontend/src/common/components/dashboard/DashboardTabPanels.scss
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,3 @@ | ||
@use "./Dashboard"; | ||
|
||
@include Dashboard.page-tabpanel-container-style(".dashboard-tab-panels"); |
19 changes: 19 additions & 0 deletions
19
frontend/src/common/components/dashboard/DashboardTabPanels.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,19 @@ | ||
import "./DashboardTabPanels.scss"; | ||
import { TabPanels } from "../tabs/TabPanels"; | ||
import { TabComponentProps } from "../tabs/types/TabComponentProps"; | ||
|
||
export const DashboardTabPanels = ({ | ||
value, | ||
componentList, | ||
}: { | ||
value: number; | ||
componentList: TabComponentProps[]; | ||
}) => { | ||
return ( | ||
<TabPanels | ||
value={value} | ||
componentList={componentList} | ||
containerClassName="dashboard-tab-panels" | ||
/> | ||
); | ||
}; |
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
4 changes: 2 additions & 2 deletions
4
frontend/src/common/components/dashboard/components/banner/TabBanner.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
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
134 changes: 62 additions & 72 deletions
134
frontend/src/common/components/dialog/DeleteConfirmationDialog.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 |
---|---|---|
@@ -1,88 +1,78 @@ | ||
import Button from "@mui/material/Button"; | ||
import Dialog from "@mui/material/Dialog"; | ||
import DialogTitle from "@mui/material/DialogTitle"; | ||
import DialogContent from "@mui/material/DialogContent"; | ||
import DialogActions from "@mui/material/DialogActions"; | ||
import Typography from "@mui/material/Typography"; | ||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; | ||
import { faTrashCan } from "@fortawesome/free-solid-svg-icons"; | ||
import { | ||
Button, | ||
Dialog, | ||
DialogTitle, | ||
DialogContent, | ||
DialogActions, | ||
Typography, | ||
} from "@mui/material"; | ||
|
||
import "./DeleteConfirmationDialog.scss"; | ||
import { Nullable } from "../../types/common"; | ||
|
||
/** | ||
* A stateless confirmation dialog box for Delete Operations. | ||
* Confirmation dialog box for delete operations. | ||
*/ | ||
export const DeleteConfirmationDialog = ({ | ||
isOpen, | ||
onClickDelete, | ||
onClickCancel, | ||
caption, | ||
showDialog, | ||
onDelete, | ||
onCancel, | ||
itemToDelete, | ||
confirmationMsg = "Are you sure you want to delete this? This action cannot be undone.", | ||
}: { | ||
/** | ||
* Boolean to control the open and close state of Dialog box. | ||
*/ | ||
isOpen: boolean; | ||
/** | ||
* A callback function on clicking delete button. | ||
* @returns void | ||
*/ | ||
onClickDelete: () => void; | ||
|
||
/** | ||
* A callback function on clicking cancel button. | ||
* @returns void | ||
*/ | ||
onClickCancel: () => void; | ||
/** | ||
* A caption string showing on title of the Dialog box. | ||
* @returns string | ||
*/ | ||
caption: string; | ||
showDialog: boolean; | ||
onDelete: () => void; | ||
onCancel: () => void; | ||
itemToDelete: string; | ||
confirmationMsg?: Nullable<string>; | ||
}) => { | ||
const title = caption; | ||
|
||
return ( | ||
<div> | ||
<Dialog | ||
className="delete-confirmation-dialog" | ||
onClose={onClickCancel} | ||
aria-labelledby="confirmation-dialog-title" | ||
open={isOpen} | ||
> | ||
<DialogTitle className="delete-confirmation-dialog__title"> | ||
<span className="delete-confirmation-dialog__icon"> | ||
<FontAwesomeIcon icon={faTrashCan} /> | ||
</span>{" "} | ||
| ||
<strong>Delete {title}(s)? </strong> | ||
</DialogTitle> | ||
<Dialog | ||
className="delete-confirmation-dialog" | ||
onClose={onCancel} | ||
aria-labelledby="confirmation-dialog-title" | ||
open={showDialog} | ||
classes={{ | ||
paper: "delete-confirmation-dialog__container", | ||
}} | ||
> | ||
<DialogTitle className="delete-confirmation-dialog__header"> | ||
<span className="delete-confirmation-dialog__icon"> | ||
<FontAwesomeIcon icon={faTrashCan} /> | ||
</span> | ||
|
||
<span className="delete-confirmation-dialog__title"> | ||
Delete {itemToDelete}(s)? | ||
</span> | ||
</DialogTitle> | ||
|
||
<DialogContent className="delete-confirmation-dialog__content" dividers> | ||
<Typography className="delete-confirmation-dialog__msg" gutterBottom> | ||
Are you sure you want to delete this? This action cannot be undone. | ||
</Typography> | ||
</DialogContent> | ||
<DialogContent className="delete-confirmation-dialog__content" dividers> | ||
<Typography className="delete-confirmation-dialog__msg" gutterBottom> | ||
{confirmationMsg} | ||
</Typography> | ||
</DialogContent> | ||
|
||
<DialogActions className="delete-confirmation-dialog__actions"> | ||
<Button | ||
className="delete-confirmation-btn delete-confirmation-btn--cancel" | ||
variant="contained" | ||
color="secondary" | ||
onClick={onClickCancel} | ||
> | ||
Cancel | ||
</Button> | ||
<DialogActions className="delete-confirmation-dialog__actions"> | ||
<Button | ||
className="delete-confirmation-dialog__btn delete-confirmation-dialog__btn--cancel" | ||
variant="contained" | ||
color="secondary" | ||
onClick={onCancel} | ||
> | ||
Cancel | ||
</Button> | ||
|
||
<Button | ||
className="delete-confirmation-btn delete-confirmation-btn--delete" | ||
variant="contained" | ||
color="error" | ||
onClick={onClickDelete} | ||
> | ||
Delete | ||
</Button> | ||
</DialogActions> | ||
</Dialog> | ||
</div> | ||
<Button | ||
className="delete-confirmation-dialog__btn delete-confirmation-dialog__btn--delete" | ||
variant="contained" | ||
color="error" | ||
onClick={onDelete} | ||
> | ||
Delete | ||
</Button> | ||
</DialogActions> | ||
</Dialog> | ||
); | ||
}; |
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
Oops, something went wrong.