This commit is contained in:
Kenneth Jannette
2024-02-24 01:19:28 -06:00
parent c194f23ebd
commit 85b12b17e0
5 changed files with 28 additions and 10 deletions

View File

@@ -34,7 +34,7 @@ function App() {
const { currentUserEmail } = useContext(AuthContext); const { currentUserEmail } = useContext(AuthContext);
const { group } = appState; const { group } = appState;
const navigate = useNavigate(); const navigate = useNavigate();
console.log("group in App", group);
// wait for user information // wait for user information
if (typeof currentUserEmail === "undefined") { if (typeof currentUserEmail === "undefined") {
return null; return null;

View File

@@ -30,6 +30,7 @@ const Dashboard = () => {
const { group } = appState; const { group } = appState;
const appUserId = group ? group.appUserId : null; const appUserId = group ? group.appUserId : null;
const isDashboard = true; const isDashboard = true;
useEffect(() => { useEffect(() => {
if (count.current == null) { if (count.current == null) {
setIsMobile(window.innerWidth < 440); setIsMobile(window.innerWidth < 440);

View File

@@ -20,12 +20,16 @@ const Login = () => {
} }
setIsBusy(true); setIsBusy(true);
setNotice(""); setNotice("");
console.log("auth", auth);
console.log("email", email);
console.log("password", password);
try { try {
const userCredential = await signInWithEmailAndPassword( const userCredential = await signInWithEmailAndPassword(
auth, auth,
email, email,
password password
); );
console.log("userCredential", userCredential);
// Signed in // Signed in
userCredential?.user && navigate("/dashboard"); userCredential?.user && navigate("/dashboard");
} catch (error) { } catch (error) {

View File

@@ -173,17 +173,26 @@ const UploadModal = (props) => {
<Modal.Body> <Modal.Body>
<div className="modal-header-text-wrapper"> <div className="modal-header-text-wrapper">
<p className="upload-modal-header-text"> <p className="upload-modal-header-text">
Select a document in pdf format for upload. Enter the document title Select a .pdf file for upload. Enter title and choose document type.
below. Document description is optional. (the other fields are optional.)
</p> </p>
<p className="upload-modal-header-text"> <p className="upload-modal-header-text">
This document will be associated with {caption} v. {captionTwo} Select the document type.{" "}
<span className="upload-header-bold">
Selecting "complaint" will automatically begin creation of
discovery requests.
</span>
</p>
<p className="upload-modal-header-text">
The document will be associated with{" "}
<em>
{caption} v. {captionTwo}
</em>
{caseNumber ? `, ${caseNumber}` : ""}. {caseNumber ? `, ${caseNumber}` : ""}.
</p> </p>
<p className="upload-modal-header-text"> <p className="upload-modal-header-text">
If that is not the case you want to associate with this document, If that is not the correct case: click cancel to go back and select
click "cancel", go back and select the intended case from your the intended case from your active cases.
active case list.
</p> </p>
</div> </div>
<Form> <Form>

View File

@@ -12,21 +12,25 @@
} }
.modal-header-text-wrapper { .modal-header-text-wrapper {
margin-bottom: 12px; margin-bottom: 18px;
padding: 0px 8px; padding: 0px 8px;
} }
.upload-modal-header-text { .upload-modal-header-text {
font-family: Roboto; font-family: Roboto;
font-size: 0.89rem;
font-weight: 400; font-weight: 400;
line-height: 1.25rem; line-height: 1.1rem;
margin: 0px 0px 10px 0px; margin: 0px 0px 10px 0px;
} }
.upload-header-bold {
font-weight: 500;
}
.modal-document-error { .modal-document-error {
margin: -10px 2px 0px 5px; margin: -10px 2px 0px 5px;
color: red; color: red;
font-size: 0.85rem; font-size: 0.89rem;
} }
.create-modal-header { .create-modal-header {