Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/email project verification on mobile and tablet devices #4809

Merged
merged 1 commit into from
Oct 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
}
`;
Loading