all repos — caroster @ 8a4f9e069b406ad3b9c2405dbef767b2a5304477

[Octree] Group carpool to your event https://caroster.io

frontend/containers/LoginGoogle/index.tsx (view raw)

 1import Box from '@mui/material/Box';
 2import Button from '@mui/material/Button';
 3import {signIn} from 'next-auth/react';
 4import {useTranslation} from 'next-i18next';
 5import theme from '../../theme';
 6
 7const LoginGoogle = () => {
 8  const {t} = useTranslation();
 9
10  return (
11    <Button
12      variant="outlined"
13      color="primary"
14      fullWidth
15      onClick={() => signIn('google', {callbackUrl: '/dashboard'})}
16    >
17      <Box
18        component="img"
19        sx={{marginRight: theme.spacing(1)}}
20        height="25px"
21        src="/assets/google-icon.svg"
22        alt="Google Login"
23      />
24      {t('signin.withGoogle')}
25    </Button>
26  );
27};
28
29export default LoginGoogle;