This commit is contained in:
Kenneth Jannette
2024-01-11 21:57:18 -06:00
parent 7b97dae90b
commit 6b83f20e81
4 changed files with 33 additions and 10 deletions

View File

@@ -1,4 +1,4 @@
import React, { useState } from "react";
import React, { useState, useEffect } from "react";
import Col from "react-bootstrap/Col";
import Form from "react-bootstrap/Form";
import Row from "react-bootstrap/Row";
@@ -24,6 +24,9 @@ const SignupPage = () => {
const navigate = useNavigate();
const [notice, setNotice] = useState("");
const [isMobile, setIsMobile] = useState(window.innerWidth < 440);
useEffect(() => {
setIsMobile(window.innerWidth < 440);
});
const fieldsChunkSize = 2;
const [isBusy, setIsBusy] = useState(false);
const [data, setData] = useState(getFormDataDefaults(signupfields));