import React from "react";
import cookie from "react-cookies";
import api from './api/api'
class LoginLinkSend extends React.Component {
  
  constructor(props) {
    console.log("finalJson");
    super(props);
    if (
      localStorage.getItem("current_state") !== "login_link_send" )  {
        this.props.history.push("/menu_page");
      }
  }


  render() {
    return (
    <div className="bcd_header_div_margin"> 
     <div className="allpages_desktop_boxes_div existinguser_header_div">
      <div className="e_user_div_header">
        <div className="e_user_first_div">
          <img
            src={api.image_path+"email_box.png"}
            alt=""
            title=""
            className="e_user_img"
          />
          <p className="e_user_pare">Check Your</p>
          <p className="e_user_pare email_text">
            <span className="email_text_e">E</span><span className="email_text_m">m</span><span className="email_text_a">a</span>
            <span className="email_text_i">i</span><span className="email_text_l">l</span><span className="email_text_hash">!</span>
          </p>
        </div>
        <div className="login_link_para_div">
         <p className="e_user_pare_one">
           A login link was sent to your email{" "}  
         </p>
        </div>  
        <div className="e_user_second_div">
          <img
            src={api.image_path+"prev_arrow.jpg"}
            width="40"
            className="next_icon next_left"
            onClick={() =>
              {localStorage.setItem("current_state","home"),this.props.history.push("/")}
            }
          />
        </div>
        <div />
      </div>
     </div>
    </div>  
    );
  }
}
export default LoginLinkSend;
