-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Nilesh Gupta <[email protected]>
- Loading branch information
Nilesh Gupta
committed
Sep 5, 2024
1 parent
3dfa0ad
commit 42a7993
Showing
2 changed files
with
18 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,27 @@ | ||
import {Alert, Box, Button} from "@mui/material"; | ||
import {Alert, Box, IconButton} from "@mui/material"; | ||
import CheckCircleIcon from "@mui/icons-material/CheckCircle"; | ||
import React from "react"; | ||
import CloseIcon from "@mui/icons-material/Close"; | ||
|
||
export interface IMinStaffSuccess { | ||
minStaffNumber: number | null, | ||
message: string, | ||
closeHandler: () => void | ||
} | ||
|
||
export const MinStaffSuccess = ({minStaffNumber, message}: IMinStaffSuccess) => { | ||
export const MinStaffSuccess = ({minStaffNumber, message, closeHandler}: IMinStaffSuccess) => { | ||
return <Box data-testid={`min-staff-form-success`} sx={{marginTop: '10px', backgroundColor: '#eeeff0'}}> | ||
<Alert sx={{color: '#FFFFFF', backgroundColor: '#2E7D32'}} severity="success" | ||
action={ | ||
<IconButton | ||
aria-label="close" | ||
color="inherit" | ||
size="small" | ||
onClick={closeHandler} | ||
> | ||
<CloseIcon fontSize="inherit"/> | ||
</IconButton> | ||
} | ||
icon={<CheckCircleIcon style={{color: '#FFFFFF'}}/>}>{message} {minStaffNumber}</Alert> | ||
</Box> | ||
} |
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