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 { group } = appState;
const navigate = useNavigate();
console.log("group in App", group);
// wait for user information
if (typeof currentUserEmail === "undefined") {
return null;

View File

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

View File

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

View File

@@ -173,17 +173,26 @@ const UploadModal = (props) => {
<Modal.Body>
<div className="modal-header-text-wrapper">
<p className="upload-modal-header-text">
Select a document in pdf format for upload. Enter the document title
below. Document description is optional.
Select a .pdf file for upload. Enter title and choose document type.
(the other fields are optional.)
</p>
<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}` : ""}.
</p>
<p className="upload-modal-header-text">
If that is not the case you want to associate with this document,
click "cancel", go back and select the intended case from your
active case list.
If that is not the correct case: click cancel to go back and select
the intended case from your active cases.
</p>
</div>
<Form>

View File

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