diff --git a/src/components/Staff/MinStaffSuccess.tsx b/src/components/Staff/MinStaffSuccess.tsx index def661c..ed80eac 100644 --- a/src/components/Staff/MinStaffSuccess.tsx +++ b/src/components/Staff/MinStaffSuccess.tsx @@ -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 + + + } icon={}>{message} {minStaffNumber} } diff --git a/src/components/Staff/MinStaffSucess.stories.tsx b/src/components/Staff/MinStaffSucess.stories.tsx index 4df7850..0b3bf3f 100644 --- a/src/components/Staff/MinStaffSucess.stories.tsx +++ b/src/components/Staff/MinStaffSucess.stories.tsx @@ -12,6 +12,9 @@ type Story = StoryObj; export const MinStaffSuccess: Story = { args: { minStaffNumber: 1, - message: "You updated the minimum staff number" + message: "You updated the minimum staff number", + closeHandler: () => { + console.log("Close handler") + } } };