Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ani-kalpachka committed Mar 17, 2024
1 parent aaefd08 commit 8638d4f
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 13 deletions.
24 changes: 16 additions & 8 deletions src/components/client/irregularity/steps/Info.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -42,7 +44,9 @@ export default function Info({ files, setFiles }: Props) {
<Subtitle label={t('steps.info.subtitle')} />
<Grid container item>
<Grid item xs={12}>
<Typography sx={{ fontSize: '18px' }}>{t('steps.info.is-donor')}</Typography>
<Typography sx={{ fontSize: theme.typography.pxToRem(18) }}>
{t('steps.info.is-donor')}
</Typography>
</Grid>
<Grid container item xs={12}>
<FormControl sx={{ width: '40%', marginTop: '20px' }}>
Expand Down Expand Up @@ -75,7 +79,7 @@ export default function Info({ files, setFiles }: Props) {
</Grid>
<Grid container item>
<Grid item xs={12}>
<Typography sx={{ fontSize: '18px', marginBottom: '20px' }}>
<Typography sx={{ fontSize: theme.typography.pxToRem(18), marginBottom: '20px' }}>
{t('reason.title')}
</Typography>
</Grid>
Expand All @@ -85,15 +89,19 @@ export default function Info({ files, setFiles }: Props) {
</Grid>
<Grid container item>
<Grid item xs={12}>
<Typography sx={{ fontSize: '18px' }}>{t('steps.info.content')}</Typography>
<Typography sx={{ fontSize: theme.typography.pxToRem(18) }}>
{t('steps.info.content')}
</Typography>
</Grid>
<Grid item xs={12}>
<CssTextField label="" type="text" multiline rows={6} name="info.description" />
</Grid>
</Grid>
<Grid container item>
<Grid item xs={12}>
<Typography sx={{ fontSize: '18px' }}>{t('steps.info.files')}</Typography>
<Typography sx={{ fontSize: theme.typography.pxToRem(18) }}>
{t('steps.info.files')}
</Typography>
</Grid>
<Grid container justifyContent="center" mt={2}>
<FileUpload
Expand All @@ -113,22 +121,22 @@ export default function Info({ files, setFiles }: Props) {
</Grid>
</Grid>
<Grid item xs={12}>
<Typography sx={{ fontSize: '15px', textAlign: 'justify' }}>
<Typography sx={{ fontSize: theme.typography.pxToRem(15), textAlign: 'justify' }}>
{t('steps.info.priority-message')}
</Typography>
</Grid>
<Grid item xs={12}>
<Typography sx={{ fontSize: '15px', textAlign: 'justify' }}>
<Typography sx={{ fontSize: theme.typography.pxToRem(15), textAlign: 'justify' }}>
{t('steps.info.share-message')}
</Typography>
</Grid>
<Grid item xs={12}>
<Typography sx={{ fontSize: '15px', textAlign: 'justify' }}>
<Typography sx={{ fontSize: theme.typography.pxToRem(15), textAlign: 'justify' }}>
{t('steps.info.thanks-message')}
</Typography>
</Grid>
<Grid item xs={12}>
<Typography sx={{ fontSize: '15px', textAlign: 'justify' }}>
<Typography sx={{ fontSize: theme.typography.pxToRem(15), textAlign: 'justify' }}>
{t('steps.info.sign')}
</Typography>
</Grid>
Expand Down
Original file line number Diff line number Diff line change
@@ -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',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
4 changes: 2 additions & 2 deletions src/components/client/notifications/GeneralSubscribeModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export default function RenderSubscribeModal({ setOpen }: ModalProps) {
}}>
<CloseModalButton onClose={handleClose} />
<React.Fragment>
<EmailIcon color="primary" sx={{ fontSize: theme.typography.pxToRem(64), }} />
<EmailIcon color="primary" sx={{ fontSize: theme.typography.pxToRem(64) }} />
<DialogTitle style={{ textAlign: 'center', width: '100%' }}>
{t('common:notifications.subscribe-title')}
</DialogTitle>
Expand Down Expand Up @@ -237,7 +237,7 @@ export default function RenderSubscribeModal({ setOpen }: ModalProps) {
<CloseModalButton onClose={handleClose} />
{!isSuccess ? (
<React.Fragment>
<EmailIcon color="primary" sx={{ fontSize: theme.typography.pxToRem(64), }} />
<EmailIcon color="primary" sx={{ fontSize: theme.typography.pxToRem(64) }} />
<DialogTitle style={{ textAlign: 'center', width: '100%' }}>
{t('common:notifications.subscribe-title')}
</DialogTitle>
Expand Down
4 changes: 3 additions & 1 deletion src/components/client/notifications/SubscriptionPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,9 @@ export default function SubscriptionPage(data: Props) {
<React.Fragment>
<React.Fragment>
<Grid item mt={5} display="flex" direction="column" alignItems="center">
<AnnouncementIcon sx={{ fontSize: theme.typography.pxToRem(64), color: '#FF007F' }} />
<AnnouncementIcon
sx={{ fontSize: theme.typography.pxToRem(64), color: '#FF007F' }}
/>
<DialogTitle>
<Typography
variant="h5"
Expand Down
1 change: 0 additions & 1 deletion src/gql/campaigns.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { UUID } from './types'
import type { CampaignFileRole } from 'components/common/campaign-file/roles'
import type { CampaignTypeCategory } from 'components/common/campaign-types/categories'
import { Currency } from './currency'
import { PaymentProvider } from './donations.enums'
import { CampaignState } from 'components/client/campaigns/helpers/campaign.enums'
import { BeneficiaryType } from '../components/admin/beneficiary/BeneficiaryTypes'
import { VaultResponse } from './vault'
Expand Down

0 comments on commit 8638d4f

Please sign in to comment.