This commit is contained in:
Kenneth Jannette
2024-01-14 16:32:37 -06:00
parent 039fe46d5d
commit ff74e641f7
4 changed files with 20 additions and 8 deletions

View File

@@ -5,6 +5,7 @@ import Col from "react-bootstrap/Col";
import Form from "react-bootstrap/Form";
import Row from "react-bootstrap/Row";
import { demofields } from "../../Constants/Fields/DemoFields";
import { useParams } from "react-router-dom";
import { splitEvery } from "../../Utils/Array";
import TextInput from "../../pageElements/TextInput";
import { objectMap } from "../../Utils/Object";
@@ -20,10 +21,13 @@ import { collection, setDoc, doc } from "firebase/firestore";
import "../../styles/demo-request-page.scss";
const DemoRequestPage = () => {
const { supReq } = useParams();
const navigate = useNavigate();
const [data, setData] = useState(getFormDataDefaults(demofields));
const [isBusy, setIsBusy] = useState();
const fieldsChunkSize = 2;
const isSupport = supReq === "5ac45d12";
console.log("isSupport", isSupport);
const handleChangeInput = (e, name) => {
const newData = handleFormDataChange(e, name, data, demofields);

View File

@@ -21,7 +21,8 @@ const HomePage = () => {
};
const handleDemo = () => {
navigate("/demorequestpage");
const supReq = null;
navigate("/requestpage/supReq");
};
return (