30 lines
842 B
TypeScript
30 lines
842 B
TypeScript
import React from 'react';
|
|
import { useNavigate } from 'react-router-dom';
|
|
|
|
import { Container, Button, Box, Paper } from '@mui/material';
|
|
|
|
import TermsAndConditionsBox from '../components/TermsAndConditionsBox';
|
|
|
|
const TermsAndConditions = () => {
|
|
const navigate = useNavigate();
|
|
|
|
const handleAccept = () => {
|
|
navigate('/verify-email');
|
|
};
|
|
|
|
return (
|
|
<Container maxWidth="lg">
|
|
<Paper elevation={3} style={{ padding: '2rem', marginTop: '2rem', height: '83vh', display: 'flex', flexDirection: 'column' }}>
|
|
<TermsAndConditionsBox height='80vh' />
|
|
<Box mt={2} display="flex" justifyContent="center">
|
|
<Button variant="contained" color="primary" onClick={handleAccept}>
|
|
Accept
|
|
</Button>
|
|
</Box>
|
|
</Paper>
|
|
</Container>
|
|
);
|
|
};
|
|
|
|
export default TermsAndConditions;
|