|
1 | | -import { makeStyles, Typography } from '@material-ui/core'; |
| 1 | +import { makeStyles, Typography, Link } from '@material-ui/core'; |
2 | 2 | import React from 'react'; |
3 | | -import { Redirect } from 'react-router'; |
| 3 | +import CustomButton from '../../../components/Button/ButtonComponent' |
4 | 4 |
|
5 | | -const useStyles = makeStyles(() => ({ |
6 | | - root: { |
7 | | - marginTop: '49vh' |
| 5 | +const useStyles = makeStyles((theme) => ({ |
| 6 | + root: { |
| 7 | + marginTop: '35vh', |
| 8 | + textAlign: 'center', |
| 9 | + color: theme.palette.text |
| 10 | + }, |
| 11 | + button: { |
| 12 | + marginTop: '40px' |
8 | 13 | } |
9 | 14 | })); |
10 | 15 |
|
11 | 16 | export default function Success() { |
12 | 17 | const classes = useStyles(); |
13 | 18 |
|
14 | | - const [wait, removeWait] = React.useState(true); |
15 | | - |
16 | | - setTimeout( |
17 | | - function () { |
18 | | - removeWait(false); |
19 | | - }, |
20 | | - 7000) |
21 | | - |
22 | | - if (wait) { |
| 19 | + if (true) { |
23 | 20 | return ( |
24 | 21 | <div className={classes.root}> |
25 | | - <Typography align="center">Your last payment to codeforcause was successful. We will connect you within 24 hours for further details.</Typography> |
26 | | - <Typography align="center">Connect with us is case of any doubt.</Typography> |
27 | | - <Typography align="center">Redirecting to home page...</Typography> |
| 22 | + <Typography align="center">Your last payment to codeforcause was successful. We will connect with you within 24 hours with more details.</Typography> |
| 23 | + <Typography align="center">Connect with us at {` `} |
| 24 | + <Link |
| 25 | + href="mailto:team@codeforcause.org" |
| 26 | + >team@codeforcause.org</Link> |
| 27 | + {` `}or{` `} |
| 28 | + <Link |
| 29 | + href="tel:+919810468685" |
| 30 | + >+91 98104 68685</Link> |
| 31 | + |
| 32 | + {` `} in case of any doubt.</Typography> |
| 33 | + <CustomButton className={classes.button} title="Go Back To Homepage" href="/" /> |
28 | 34 | </div> |
29 | 35 | ); |
30 | 36 | } |
31 | | - |
32 | | - return ( |
33 | | - <Redirect to="/" /> |
34 | | - ) |
35 | 37 | } |
0 commit comments