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