Skip to content

Commit

Permalink
Merge pull request #4809 from Giveth/fix/success_verify_email
Browse files Browse the repository at this point in the history
Fix/email project verification on mobile and tablet devices
  • Loading branch information
kkatusic authored Oct 3, 2024
2 parents ce1683e + 24c388b commit 1e3a5fd
Showing 1 changed file with 20 additions and 10 deletions.
30 changes: 20 additions & 10 deletions src/components/views/verification/EmailVerificationIndex.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { FC, useEffect, useState } from 'react';
import styled from 'styled-components';
import { useIntl } from 'react-intl';
import { brandColors, H6, Lead, ButtonLink } from '@giveth/ui-design-system';
import Link from 'next/link';
Expand All @@ -9,6 +10,7 @@ import check_stars from '/public/images/icons/check_stars.svg';
import failed_stars from '/public/images/icons/failed_stars.svg';
import { SEND_EMAIL_VERIFICATION_TOKEN } from '@/apollo/gql/gqlVerification';
import { client } from '@/apollo/apolloClient';
import { mediaQueries } from '@/lib/constants/constants';
import { slugToVerification } from '@/lib/routeCreators';
import {
VCImageContainer,
Expand Down Expand Up @@ -96,16 +98,18 @@ function Verified() {
id: 'label.you_can_now_close_this_page_and_continue_verifying',
})}
</Lead>
<Link href={slugToVerification(slug as string)}>
<ButtonLink
size='small'
label={
formatMessage({
id: 'label.continue_verification',
})!
}
/>
</Link>
<LinkHolder>
<Link href={slugToVerification(slug as string)}>
<ButtonLink
size='small'
label={
formatMessage({
id: 'label.continue_verification',
})!
}
/>
</Link>
</LinkHolder>
<VCImageContainer>
<Link href='/'>
<Image
Expand Down Expand Up @@ -154,3 +158,9 @@ function Rejected() {
</>
);
}

const LinkHolder = styled.div`
${mediaQueries.tablet} {
margin-bottom: 205px;
}
`;

0 comments on commit 1e3a5fd

Please sign in to comment.