This commit is contained in:
Dave Richer
2023-12-11 17:34:05 -05:00
parent 5c164f807d
commit ad79344709
87 changed files with 1100 additions and 1113 deletions

View File

@@ -1,5 +1,5 @@
import { Button, Form, Input } from "antd";
import React from "react";
import React, {useEffect} from "react";
import { useTranslation } from "react-i18next";
import { connect } from "react-redux";
import { createStructuredSelector } from "reselect";
@@ -36,7 +36,9 @@ export function TechLogin({
techLoginStart(values);
};
if (technician) return navigate("/tech/joblookup");
useEffect(() => {
if (technician) return navigate("/tech/joblookup");
}, [technician, navigate]);
return (
<div className="tech-login-container">