diff --git a/SignIn.js b/SignIn.js deleted file mode 100644 index 65bb229..0000000 --- a/SignIn.js +++ /dev/null @@ -1,347 +0,0 @@ -// import React, { useState, useEffect } from 'react'; -// import { Link as RouterLink, withRouter } from 'react-router-dom'; -// import PropTypes from 'prop-types'; -// import validate from 'validate.js'; -// import { makeStyles } from '@material-ui/styles'; -// import { -// Grid, -// Button, -// IconButton, -// TextField, -// Link, -// Typography -// } from '@material-ui/core'; -// import ArrowBackIcon from '@material-ui/icons/ArrowBack'; -// -// import { Facebook as FacebookIcon, Google as GoogleIcon } from 'icons'; -// -// const schema = { -// email: { -// presence: { allowEmpty: false, message: 'is required' }, -// email: true, -// length: { -// maximum: 64 -// } -// }, -// password: { -// presence: { allowEmpty: false, message: 'is required' }, -// length: { -// maximum: 128 -// } -// } -// }; -// -// const useStyles = makeStyles(theme => ({ -// root: { -// backgroundColor: theme.palette.background.default, -// height: '100%' -// }, -// grid: { -// height: '100%' -// }, -// quoteContainer: { -// [theme.breakpoints.down('md')]: { -// display: 'none' -// } -// }, -// quote: { -// backgroundColor: theme.palette.neutral, -// height: '100%', -// display: 'flex', -// justifyContent: 'center', -// alignItems: 'center', -// backgroundImage: 'url(/images/auth.jpg)', -// backgroundSize: 'cover', -// backgroundRepeat: 'no-repeat', -// backgroundPosition: 'center' -// }, -// quoteInner: { -// textAlign: 'center', -// flexBasis: '600px' -// }, -// quoteText: { -// color: theme.palette.white, -// fontWeight: 300 -// }, -// name: { -// marginTop: theme.spacing(3), -// color: theme.palette.white -// }, -// bio: { -// color: theme.palette.white -// }, -// contentContainer: {}, -// content: { -// height: '100%', -// display: 'flex', -// flexDirection: 'column' -// }, -// contentHeader: { -// display: 'flex', -// alignItems: 'center', -// paddingTop: theme.spacing(5), -// paddingBototm: theme.spacing(2), -// paddingLeft: theme.spacing(2), -// paddingRight: theme.spacing(2) -// }, -// logoImage: { -// marginLeft: theme.spacing(4) -// }, -// contentBody: { -// flexGrow: 1, -// display: 'flex', -// alignItems: 'center', -// [theme.breakpoints.down('md')]: { -// justifyContent: 'center' -// } -// }, -// form: { -// paddingLeft: 100, -// paddingRight: 100, -// paddingBottom: 125, -// flexBasis: 700, -// [theme.breakpoints.down('sm')]: { -// paddingLeft: theme.spacing(2), -// paddingRight: theme.spacing(2) -// } -// }, -// title: { -// marginTop: theme.spacing(3) -// }, -// socialButtons: { -// marginTop: theme.spacing(3) -// }, -// socialIcon: { -// marginRight: theme.spacing(1) -// }, -// sugestion: { -// marginTop: theme.spacing(2) -// }, -// textField: { -// marginTop: theme.spacing(2) -// }, -// signInButton: { -// margin: theme.spacing(2, 0) -// } -// })); -// -// const SignIn = props => { -// const { history } = props; -// -// const classes = useStyles(); -// -// const [formState, setFormState] = useState({ -// isValid: false, -// values: {}, -// touched: {}, -// errors: {} -// }); -// -// useEffect(() => { -// const errors = validate(formState.values, schema); -// -// setFormState(formState => ({ -// ...formState, -// isValid: errors ? false : true, -// errors: errors || {} -// })); -// }, [formState.values]); -// -// const handleBack = () => { -// history.goBack(); -// }; -// -// const handleChange = event => { -// event.persist(); -// -// setFormState(formState => ({ -// ...formState, -// values: { -// ...formState.values, -// [event.target.name]: -// event.target.type === 'checkbox' -// ? event.target.checked -// : event.target.value -// }, -// touched: { -// ...formState.touched, -// [event.target.name]: true -// } -// })); -// }; -// -// const handleSignIn = event => { -// event.preventDefault(); -// history.push('/'); -// }; -// -// const hasError = field => -// formState.touched[field] && formState.errors[field] ? true : false; -// -// return ( -//
Welcome to Micro frontend Example