import React, { Component } from "react"; import Logo from "../images/logo1.png"; import "./Login.css"; import { Link, Redirect, withRouter } from "react-router-dom"; // import { useTranslation } from "react-i18next"; import { withTranslation } from "react-i18next"; class Login extends Component { state = { Account: { firstName: "Kevon", lastName: "Green", email: "kevon.green@kcribs.com", password: "Kcribs123", }, }; handleLogin = (e) => { e.preventDefault(); var loginEmail = document.getElementById("login-email"); if (loginEmail.value === this.state.Account.email) { // alert("validated!!!"); return this.props.history.push("/account"); } else { // alert("Errors!!") return this.props.history.push("/login"); } }; render() { const { t } = this.props; return (
app-logo

{t("Login_header")}

{t("Login_message")}


); } } export default withTranslation()(withRouter(Login));