import Avatar from '@material-ui/core/Avatar'; import Box from '@material-ui/core/Box'; import Button from '@material-ui/core/Button'; import Checkbox from '@material-ui/core/Checkbox'; import CssBaseline from '@material-ui/core/CssBaseline'; import FormControlLabel from '@material-ui/core/FormControlLabel'; import Grid from '@material-ui/core/Grid'; import Paper from '@material-ui/core/Paper'; import { Theme, makeStyles } from '@material-ui/core/styles'; import TextField from '@material-ui/core/TextField'; import Typography from '@material-ui/core/Typography'; import LockOutlinedIcon from '@material-ui/icons/LockOutlined'; import { Link } from 'gatsby'; import React, { FunctionComponent } from 'react' import { hooks } from "@{{organization}}/shared-lib" import ROUTES from '../../routes' import { SignInProps } from '../sign-in/SignIn' const useFirebaseAuthUI = hooks.useFirebaseAuthUI function Copyright({ classes }: any) { return ( {'Copyright © '} Contentful Demo {' '} {new Date().getFullYear()} {'.'} ); } const useStyles = makeStyles((theme: Theme) => ({ root: { height: '100vh', }, image: { backgroundImage: 'url(https://source.unsplash.com/random)', backgroundRepeat: 'no-repeat', backgroundColor: theme.palette.type === 'light' ? theme.palette.grey[50] : theme.palette.grey[900], backgroundSize: 'cover', backgroundPosition: 'center', }, paper: { margin: theme.spacing(8, 4), display: 'flex', flexDirection: 'column', alignItems: 'center', }, avatar: { margin: theme.spacing(1), backgroundColor: theme.palette.secondary.main, }, form: { width: '100%', // Fix IE 11 issue. marginTop: theme.spacing(1), }, submit: { margin: theme.spacing(3, 0, 2), }, link: { textDecoration: 'none', borderBottom: 'none', color: theme.palette.primary.main, } })); export const SignInForm = ({ classes }: any) => (
Sign in
} label="Remember me" /> Forgot password? {"Don't have an account? Sign Up"}
) export const SignInSide: FunctionComponent = (props) => { const classes = useStyles(); useFirebaseAuthUI(props) return ( ); } export default SignInSide