SVS added test
This commit is contained in:
@@ -6,6 +6,7 @@ import googleLogo from "../../../assets/images/google-logo.svg";
|
|||||||
import titleShape from "../../../assets/images/shape/login_straight_underline.svg";
|
import titleShape from "../../../assets/images/shape/login_straight_underline.svg";
|
||||||
import InputCom from "../../Helpers/Inputs/InputCom";
|
import InputCom from "../../Helpers/Inputs/InputCom";
|
||||||
import AuthLayout from "../AuthLayout";
|
import AuthLayout from "../AuthLayout";
|
||||||
|
import usersService from "../../../services/UsersService";
|
||||||
|
|
||||||
export default function Login() {
|
export default function Login() {
|
||||||
const [checked, setValue] = useState(false);
|
const [checked, setValue] = useState(false);
|
||||||
@@ -19,7 +20,7 @@ export default function Login() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// email
|
// email
|
||||||
const [email, setMail] = useState("support@chiefsoft.com");
|
const [email, setMail] = useState("support@mermsemr.com");
|
||||||
const handleEmail = (e) => {
|
const handleEmail = (e) => {
|
||||||
setMail(e.target.value);
|
setMail(e.target.value);
|
||||||
};
|
};
|
||||||
@@ -31,7 +32,7 @@ export default function Login() {
|
|||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
const doLogin = () => {
|
const doLogin = () => {
|
||||||
if (email !== "" && password !== "") {
|
if (email !== "" && password !== "") {
|
||||||
if (email === "support@chiefsoft.com") {
|
if (email === "support@mermsemr.com") {
|
||||||
localStorage.setItem("email", `${email}`);
|
localStorage.setItem("email", `${email}`);
|
||||||
setLoginLoading(true);
|
setLoginLoading(true);
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
@@ -66,7 +67,7 @@ export default function Login() {
|
|||||||
<InputCom
|
<InputCom
|
||||||
value={email}
|
value={email}
|
||||||
inputHandler={handleEmail}
|
inputHandler={handleEmail}
|
||||||
placeholder="support@chiefsoft.com"
|
placeholder="support@mermsemr.com"
|
||||||
label="Email Address"
|
label="Email Address"
|
||||||
name="email"
|
name="email"
|
||||||
type="email"
|
type="email"
|
||||||
|
|||||||
Reference in New Issue
Block a user