Skip to content

Commit

Permalink
Update irregularity button on campaign page
Browse files Browse the repository at this point in the history
  • Loading branch information
ani-kalpachka committed Aug 15, 2024
1 parent 3975690 commit 5665f95
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 23 deletions.
2 changes: 1 addition & 1 deletion public/locales/bg/campaigns.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
},
"gallery": "Галерия",
"financial-report": "Финансови отчети",
"report-campaign": "Докладвайте кампанията",
"report-campaign": "Подайте сигнал за нередност",
"feedback": "Обратна връзка",
"beneficiary": {
"name": "Бенефициент",
Expand Down
2 changes: 1 addition & 1 deletion public/locales/en/campaigns.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
},
"gallery": "Gallery",
"financial-report": "Financial report",
"report-campaign": "Report the campaign",
"report-campaign": "Report an irregularity",
"feedback": "Feedback",
"beneficiary": {
"name": "Beneficiary",
Expand Down
32 changes: 11 additions & 21 deletions src/components/client/campaigns/CampaignDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { CampaignResponse } from 'gql/campaigns'
import 'react-quill/dist/quill.bubble.css'

import { Divider, Grid, IconButton, Tooltip, Typography } from '@mui/material'
import SecurityIcon from '@mui/icons-material/Security'
import NotificationsActiveOutlinedIcon from '@mui/icons-material/NotificationsActiveOutlined'
import { styled } from '@mui/material/styles'

import DonationWishes from './DonationWishes'
Expand Down Expand Up @@ -38,7 +38,7 @@ const classes = {
banner: `${PREFIX}-banner`,
campaignTitle: `${PREFIX}-campaignTitle`,
linkButton: `${PREFIX}-linkButton`,
securityIcon: `${PREFIX}-securityIcon`,
irregularityIcon: `${PREFIX}-irregularityIcon`,
subscribeLink: `${PREFIX}-subscribe`,
financeSummary: `${PREFIX}-financeSummary`,
}
Expand Down Expand Up @@ -79,11 +79,11 @@ const StyledGrid = styled(Grid)(({ theme }) => ({
},

[`& .${classes.linkButton}`]: {
fontSize: theme.typography.pxToRem(10),
fontSize: theme.typography.pxToRem(16),
letterSpacing: theme.spacing(0.01),
lineHeight: '150%',
textDecoration: 'underline',
color: 'initial',
color: '#11356A',

'&:hover': {
textDecoration: 'underline',
Expand All @@ -92,7 +92,7 @@ const StyledGrid = styled(Grid)(({ theme }) => ({
},
},

[`& .${classes.securityIcon}`]: {
[`& .${classes.irregularityIcon}`]: {
width: theme.spacing(2.25),
height: theme.spacing(2.75),
},
Expand Down Expand Up @@ -221,22 +221,12 @@ export default function CampaignDetails({ campaign }: Props) {
<DonationWishes campaignId={campaign?.id} />
</Grid>
<Grid container item xs={12}>
<Grid item xs={12} mb={1}>
<LinkButton
startIcon={<SecurityIcon color="action" className={classes.securityIcon} />}
href={'/contact'}
className={classes.linkButton}>
{t('campaigns:campaign.feedback')}
</LinkButton>
</Grid>
<Grid item xs={12}>
<LinkButton
startIcon={<SecurityIcon color="action" className={classes.securityIcon} />}
href={`/campaigns/${campaign.slug}/irregularity`}
className={classes.linkButton}>
{t('campaigns:campaign.report-campaign')}
</LinkButton>
</Grid>
<LinkButton
startIcon={<NotificationsActiveOutlinedIcon className={classes.irregularityIcon} />}
href={`/campaigns/${campaign.slug}/irregularity`}
className={classes.linkButton}>
{t('campaigns:campaign.report-campaign')}
</LinkButton>
</Grid>
</Grid>
</StyledGrid>
Expand Down

0 comments on commit 5665f95

Please sign in to comment.