Skip to content

Commit

Permalink
Update donation call on thanks page
Browse files Browse the repository at this point in the history
  • Loading branch information
ArendPeter committed Dec 8, 2024
1 parent c5319b6 commit 63cc999
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
15 changes: 5 additions & 10 deletions packages/frontend/src/components/Election/Voting/Thanks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { StyledButton } from "../../styles";
import useElection from '../../ElectionContextProvider';
import { useSubstitutedTranslation } from '~/components/util';
import DraftWarning from '../DraftWarning';
import { Link } from '@mui/material';

const Thanks = () => {

Expand All @@ -20,7 +21,7 @@ const Thanks = () => {
flexDirection='column'
justifyContent="center"
alignItems="center"
maxWidth={500}
maxWidth={600}
mx='auto'
mb='100px'>
<Typography align='center' variant="h3" component="h3">
Expand Down Expand Up @@ -59,15 +60,9 @@ const Thanks = () => {
<ShareButton url={`${window.location.origin}/${election.election_id}`}/>
</Box>
}
<Box sx={{ width: '100%', p: 1, px:{xs: 5, sm: 1} }}>
<StyledButton
type='button'
variant='contained'
fullwidth
href={'https://www.equal.vote/donate'} >
{t('ballot_submitted.donate')}
</StyledButton>
</Box>
</Box>
<Box sx={{ margin: 'auto', p: 1, px:{xs: 5, sm: 1} }}>
<a href='https://www.equal.vote/donate'>{t('ballot_submitted.donate')}</a>
</Box>
</Box>
}
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/i18n/en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ ballot_submitted:
title: '{{capital_ballot}} Submitted'
description: Thank you for voting!
results: Results
donate: Donate to Equal Vote
donate: Donate to Equal Vote to support open source voting software
end_time: '{{capital_election}} ends {{date}} at {{time}}'

# Landing Page -> New Election Dialog
Expand Down

0 comments on commit 63cc999

Please sign in to comment.