From 6cb0d4100d77ba98faf5e1fb3aa2b5ca7c476630 Mon Sep 17 00:00:00 2001 From: Ani Date: Tue, 9 Jul 2024 12:48:02 +0300 Subject: [PATCH] Update the buttons on Irregularity page (#1875) Co-authored-by: ani-kalpachka --- .../client/irregularity/Actions.tsx | 13 ++----- .../helpers/Irregularity.styled.tsx | 39 ++----------------- 2 files changed, 8 insertions(+), 44 deletions(-) diff --git a/src/components/client/irregularity/Actions.tsx b/src/components/client/irregularity/Actions.tsx index dc3ad9311..0ff04fdc2 100644 --- a/src/components/client/irregularity/Actions.tsx +++ b/src/components/client/irregularity/Actions.tsx @@ -8,12 +8,7 @@ import { Grid } from '@mui/material' import ArrowBackIosIcon from '@mui/icons-material/ArrowBackIos' import ArrowForwardIosIcon from '@mui/icons-material/ArrowForwardIos' -import { - ActionButton, - ActionLinkButton, - ActionSubmitButton, - Root, -} from './helpers/Irregularity.styled' +import { ActionButton, ActionLinkButton, ActionSubmitButton } from './helpers/Irregularity.styled' type ActionsProps = { nextLabel: string @@ -37,12 +32,12 @@ export default function Actions({ const { t } = useTranslation('irregularity') return ( - + {activeStep === 0 ? ( }> {t(backLabel)} @@ -64,6 +59,6 @@ export default function Actions({ endIcon={} /> - + ) } diff --git a/src/components/client/irregularity/helpers/Irregularity.styled.tsx b/src/components/client/irregularity/helpers/Irregularity.styled.tsx index 8eb5f1a3e..0dcae4157 100644 --- a/src/components/client/irregularity/helpers/Irregularity.styled.tsx +++ b/src/components/client/irregularity/helpers/Irregularity.styled.tsx @@ -24,61 +24,30 @@ export const ButtonsWrapper = styled(Grid)(() => ({ })) export const ActionLinkButton = styled(LinkButton)(() => ({ - backgroundColor: '#0098E3', - border: `1px solid ${theme.palette.secondary.light}`, - padding: theme.spacing(1, 5), - borderRadius: theme.borders.round, - color: theme.palette.common.white, - fontSize: theme.typography.pxToRem(18), + fontSize: theme.typography.pxToRem(14), '&:hover': { - backgroundColor: '#62C4FB', - color: theme.palette.common.black, - border: `1px solid ${theme.palette.secondary.light}`, - }, - - [theme.breakpoints.down('md')]: { - fontSize: theme.typography.pxToRem(11), - marginBottom: theme.spacing(4), + backgroundColor: 'transparent', }, })) export const ActionButton = styled(Button)(() => ({ - backgroundColor: '#0098E3', - border: `1px solid ${theme.palette.secondary.light}`, - padding: theme.spacing(1, 5), - borderRadius: theme.borders.round, - color: theme.palette.common.white, - fontSize: theme.typography.pxToRem(18), + fontSize: theme.typography.pxToRem(14), '&:hover': { - backgroundColor: '#62C4FB', color: theme.palette.common.black, - border: `1px solid ${theme.palette.secondary.light}`, - }, - - [theme.breakpoints.down('md')]: { - fontSize: theme.typography.pxToRem(11), - marginBottom: theme.spacing(4), }, })) export const ActionSubmitButton = styled(SubmitButton)(() => ({ - backgroundColor: '#0098E3', border: `1px solid ${theme.palette.secondary.light}`, padding: theme.spacing(1, 5), borderRadius: theme.borders.round, color: theme.palette.common.white, - fontSize: theme.typography.pxToRem(18), + fontSize: theme.typography.pxToRem(14), '&:hover': { - backgroundColor: '#62C4FB', color: theme.palette.common.black, border: `1px solid ${theme.palette.secondary.light}`, }, - - [theme.breakpoints.down('md')]: { - fontSize: theme.typography.pxToRem(11), - marginBottom: theme.spacing(4), - }, }))