From 8638d4f71dfb878dafd6d224badf6e9eb6ffc1b4 Mon Sep 17 00:00:00 2001 From: ani-kalpachka Date: Sun, 17 Mar 2024 11:44:27 +0200 Subject: [PATCH] Fix lint errors --- .../client/irregularity/steps/Info.tsx | 24 ++++++++++++------- .../layout/nav/AuthLinks/AuthLinks.styled.tsx | 3 ++- .../notifications/CampaignSubscribeModal.tsx | 2 ++ .../notifications/GeneralSubscribeModal.tsx | 4 ++-- .../client/notifications/SubscriptionPage.tsx | 4 +++- src/gql/campaigns.ts | 1 - 6 files changed, 25 insertions(+), 13 deletions(-) diff --git a/src/components/client/irregularity/steps/Info.tsx b/src/components/client/irregularity/steps/Info.tsx index 283894b64..873dc92c7 100644 --- a/src/components/client/irregularity/steps/Info.tsx +++ b/src/components/client/irregularity/steps/Info.tsx @@ -13,6 +13,8 @@ import FileList from '../helpers/FileList' import { NotifierTypes } from '../helpers/irregularity.types' import IrregularityReasonSelect from '../helpers/IrregularityReasonSelect' +import theme from 'common/theme' + const CssTextField = styled(FormTextField)({ '& label': { marginLeft: '8px', @@ -42,7 +44,9 @@ export default function Info({ files, setFiles }: Props) { - {t('steps.info.is-donor')} + + {t('steps.info.is-donor')} + @@ -75,7 +79,7 @@ export default function Info({ files, setFiles }: Props) { - + {t('reason.title')} @@ -85,7 +89,9 @@ export default function Info({ files, setFiles }: Props) { - {t('steps.info.content')} + + {t('steps.info.content')} + @@ -93,7 +99,9 @@ export default function Info({ files, setFiles }: Props) { - {t('steps.info.files')} + + {t('steps.info.files')} + - + {t('steps.info.priority-message')} - + {t('steps.info.share-message')} - + {t('steps.info.thanks-message')} - + {t('steps.info.sign')} diff --git a/src/components/client/layout/nav/AuthLinks/AuthLinks.styled.tsx b/src/components/client/layout/nav/AuthLinks/AuthLinks.styled.tsx index 796e19847..28ed994d5 100644 --- a/src/components/client/layout/nav/AuthLinks/AuthLinks.styled.tsx +++ b/src/components/client/layout/nav/AuthLinks/AuthLinks.styled.tsx @@ -1,9 +1,10 @@ import { Box } from '@mui/material' import { styled } from '@mui/material/styles' -import theme from 'common/theme' import LinkButton from 'components/common/LinkButton' +import theme from 'common/theme' + export const AuthLinksWrapper = styled(Box)(() => ({ display: 'flex', alignItems: 'center', diff --git a/src/components/client/notifications/CampaignSubscribeModal.tsx b/src/components/client/notifications/CampaignSubscribeModal.tsx index d2ebb584b..97d08efef 100644 --- a/src/components/client/notifications/CampaignSubscribeModal.tsx +++ b/src/components/client/notifications/CampaignSubscribeModal.tsx @@ -22,6 +22,8 @@ import { email } from 'common/form/validation' import { AcceptNewsLetterFieldCampaign } from 'components/common/form/AcceptNewsletterField' import { routes } from 'common/routes' +import theme from 'common/theme' + const PREFIX = 'CampaignSubscribeModal' const classes = { diff --git a/src/components/client/notifications/GeneralSubscribeModal.tsx b/src/components/client/notifications/GeneralSubscribeModal.tsx index 71d473e3a..0b7a78a5d 100644 --- a/src/components/client/notifications/GeneralSubscribeModal.tsx +++ b/src/components/client/notifications/GeneralSubscribeModal.tsx @@ -163,7 +163,7 @@ export default function RenderSubscribeModal({ setOpen }: ModalProps) { }}> - + {t('common:notifications.subscribe-title')} @@ -237,7 +237,7 @@ export default function RenderSubscribeModal({ setOpen }: ModalProps) { {!isSuccess ? ( - + {t('common:notifications.subscribe-title')} diff --git a/src/components/client/notifications/SubscriptionPage.tsx b/src/components/client/notifications/SubscriptionPage.tsx index 93f6197e7..c75f2a18b 100644 --- a/src/components/client/notifications/SubscriptionPage.tsx +++ b/src/components/client/notifications/SubscriptionPage.tsx @@ -178,7 +178,9 @@ export default function SubscriptionPage(data: Props) { - +