add go back button on email change page

This commit is contained in:
Abhinav 2022-05-03 13:22:47 +05:30
parent 4416888c6c
commit 57cbe14941

View file

@ -8,6 +8,7 @@ import ChangeEmailForm from 'components/ChangeEmail';
import { PAGES } from 'constants/pages';
import { getData, LS_KEYS } from 'utils/storage/localStorage';
import { Box, Card, CardContent } from '@mui/material';
import LinkButton from 'components/pages/gallery/LinkButton';
function ChangeEmailPage() {
const [email, setEmail] = useState(null);
@ -21,6 +22,8 @@ function ChangeEmailPage() {
}
}, []);
const goToGallery = () => router.push(PAGES.GALLERY);
return (
<Container>
<Card sx={{ minWidth: showBigDialog ? '460px' : '320px' }}>
@ -46,6 +49,9 @@ function ChangeEmailPage() {
}}
setEmail={setEmail}
/>
<LinkButton onClick={goToGallery}>
{constants.GO_BACK}
</LinkButton>
</Container>
</CardContent>
</Card>