commit
5b74ddb171
3 changed files with 15 additions and 20 deletions
|
@ -46,7 +46,7 @@
|
||||||
"Danger2": "There are some errors in your contact form.",
|
"Danger2": "There are some errors in your contact form.",
|
||||||
"Success1": "The message is successfully sent.",
|
"Success1": "The message is successfully sent.",
|
||||||
"Success2": "You contact form will be delivered to our support team.",
|
"Success2": "You contact form will be delivered to our support team.",
|
||||||
"Contact-Title": "Contact to Us",
|
"Contact-Title": "Contact Us",
|
||||||
"Contact-House": "Select an Agent",
|
"Contact-House": "Select an Agent",
|
||||||
"Contact-Agent": "Select a House",
|
"Contact-Agent": "Select a House",
|
||||||
"No-Pref": "No preference",
|
"No-Pref": "No preference",
|
||||||
|
@ -58,17 +58,14 @@
|
||||||
"Contact-Error1": "Please select an item in the list.",
|
"Contact-Error1": "Please select an item in the list.",
|
||||||
"Contact-Error2": "Please fill out this field.",
|
"Contact-Error2": "Please fill out this field.",
|
||||||
"Contact-Error3": "Invalid email address.",
|
"Contact-Error3": "Invalid email address.",
|
||||||
|
|
||||||
"Search-Bar": "Search your location",
|
"Search-Bar": "Search your location",
|
||||||
"Budget": "Select Budget",
|
"Budget": "Select Budget",
|
||||||
"Beds": "Number of Beds",
|
"Beds": "Number of Beds",
|
||||||
"Baths": "Number of Beds",
|
"Baths": "Number of Beds",
|
||||||
|
|
||||||
"Any": "Any",
|
"Any": "Any",
|
||||||
"Listing-Button": "Show Listing",
|
"Listing-Button": "Show Listing",
|
||||||
"listing_desc": "{{desc}}",
|
"listing_desc": "{{desc}}",
|
||||||
"listing_address": "{{address}}",
|
"listing_address": "{{address}}",
|
||||||
|
|
||||||
"Listing1-address": "8720 Russell Road",
|
"Listing1-address": "8720 Russell Road",
|
||||||
"Listing2-address": "1490 Youville Drive",
|
"Listing2-address": "1490 Youville Drive",
|
||||||
"Listing3-address": "100 Charlie Rogers Place",
|
"Listing3-address": "100 Charlie Rogers Place",
|
||||||
|
|
|
@ -64,18 +64,14 @@
|
||||||
"Contact-Error1": "Veuillez sélectionner un élément dans la liste.",
|
"Contact-Error1": "Veuillez sélectionner un élément dans la liste.",
|
||||||
"Contact-Error2": "Veuillez remplir ce champ.",
|
"Contact-Error2": "Veuillez remplir ce champ.",
|
||||||
"Contact-Error3": "Adresse e-mail invalide.",
|
"Contact-Error3": "Adresse e-mail invalide.",
|
||||||
|
|
||||||
"Search-Bar": "Rechercher",
|
"Search-Bar": "Rechercher",
|
||||||
"Budget": "Sélectionnez Budget",
|
"Budget": "Sélectionnez Budget",
|
||||||
"Beds": "Nombre de lits",
|
"Beds": "Nombre de lits",
|
||||||
"Baths": "Nombre de bains",
|
"Baths": "Nombre de bains",
|
||||||
"Any": "quelconque",
|
"Any": "quelconque",
|
||||||
"Listing-Button": "Afficher la liste",
|
"Listing-Button": "Afficher la liste",
|
||||||
|
|
||||||
"listing_desc": "{{desc}}",
|
"listing_desc": "{{desc}}",
|
||||||
"listing_address": "{{address}}",
|
"listing_address": "{{address}}",
|
||||||
|
|
||||||
|
|
||||||
"Listing1-address": "8720, chemin Russell",
|
"Listing1-address": "8720, chemin Russell",
|
||||||
"Listing2-address": "1490, promenade Youville",
|
"Listing2-address": "1490, promenade Youville",
|
||||||
"Listing3-address": "100, place Charlie Rogers",
|
"Listing3-address": "100, place Charlie Rogers",
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import React, { Component } from "react";
|
import React, { Component } from "react";
|
||||||
import Logo from "../images/logo1.png";
|
import Logo from "../images/logo1.png";
|
||||||
import "./Login.css";
|
import "./Login.css";
|
||||||
import { Link } from "react-router-dom";
|
import { Link, Redirect, withRouter } from "react-router-dom";
|
||||||
// import { useTranslation } from "react-i18next";
|
// import { useTranslation } from "react-i18next";
|
||||||
import { withTranslation } from "react-i18next";
|
import { withTranslation } from "react-i18next";
|
||||||
class Login extends Component {
|
class Login extends Component {
|
||||||
|
@ -15,13 +15,15 @@ class Login extends Component {
|
||||||
};
|
};
|
||||||
|
|
||||||
handleLogin = (e) => {
|
handleLogin = (e) => {
|
||||||
// e.preventDefault();
|
e.preventDefault();
|
||||||
// if ( !== this.state.Account.email) {
|
var loginEmail = document.getElementById("login-email");
|
||||||
// alert("invalid");
|
if (loginEmail.value === this.state.Account.email) {
|
||||||
// }
|
// alert("validated!!!");
|
||||||
// if (password !== this.state.Account.password) {
|
return this.props.history.push("/account");
|
||||||
// alert("invalid");
|
} else {
|
||||||
// }
|
// alert("Errors!!")
|
||||||
|
return this.props.history.push("/login");
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
@ -80,4 +82,4 @@ class Login extends Component {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export default withTranslation()(Login);
|
export default withTranslation()(withRouter(Login));
|
||||||
|
|
Loading…
Reference in a new issue