Replace bootstrap buttons in fix time dialog

This commit is contained in:
Manav Rathi 2024-03-31 18:16:09 +05:30
parent 1d02fe4f32
commit 86e4cffb8e
No known key found for this signature in database

View file

@ -1,5 +1,5 @@
import { Button } from "@mui/material";
import { t } from "i18next";
import { Button } from "react-bootstrap";
import { FIX_STATE } from ".";
export default function FixCreationTimeFooter({
@ -20,8 +20,8 @@ export default function FixCreationTimeFooter({
{(fixState === FIX_STATE.NOT_STARTED ||
fixState === FIX_STATE.COMPLETED_WITH_ERRORS) && (
<Button
block
variant={"outline-secondary"}
color="secondary"
size="large"
onClick={() => {
props.hide();
}}
@ -30,11 +30,7 @@ export default function FixCreationTimeFooter({
</Button>
)}
{fixState === FIX_STATE.COMPLETED && (
<Button
block
variant={"outline-secondary"}
onClick={props.hide}
>
<Button color="primary" size="large" onClick={props.hide}>
{t("CLOSE")}
</Button>
)}
@ -43,11 +39,7 @@ export default function FixCreationTimeFooter({
<>
<div style={{ width: "30px" }} />
<Button
block
variant={"outline-success"}
onClick={startFix}
>
<Button color="accent" size="large" onClick={startFix}>
{t("FIX_CREATION_TIME")}
</Button>
</>