From 454e010ff92d8ad6cde0cfbb96ca2c428d34d608 Mon Sep 17 00:00:00 2001 From: Kenneth Jannette Date: Wed, 31 Jan 2024 12:40:15 -0600 Subject: [PATCH] more --- src/App.js | 10 ++++ src/Components/Case/CaseTypePage.js | 85 ++++------------------------- src/styles/case-type-page.scss | 7 +++ 3 files changed, 27 insertions(+), 75 deletions(-) create mode 100644 src/styles/case-type-page.scss diff --git a/src/App.js b/src/App.js index 71c1f8f..a9ffc32 100644 --- a/src/App.js +++ b/src/App.js @@ -14,6 +14,7 @@ import Dashboard from "./Components/Dashboard/Dashboard"; import Container from "react-bootstrap/Container"; import CaseListPage from "./Components/Case/CaseListPage"; import CaseDetailsPage from "./Components/Case/CaseDetailsPage"; +import CaseTypePage from "./Components/Case/CaseTypePage"; import Footer from "./Components/Footer/Footer"; import Navbar from "./Components/Navigation/Navbar"; import AccountPage from "./Components/Account/AccountPage"; @@ -75,6 +76,15 @@ function App() { } /> + + + + } + /> { +const CaseTypePage = () => { const { caseId } = useParams(); - const [subCase, setSubCase] = useState(null); const navigate = useNavigate(); - const [showUploadModal, setShowUploadModal] = useState(); - const [showCreateModal, setShowCreateModal] = useState(); - const [isLoading, setIsLoading] = useState(false); const { appState } = useContext(AppContext); const { group } = appState; - const appUserId = group ? group.appUserId : null; - const message = - "Parsing document. Please be patient, this may take several minutes."; + const [subCase, setSubCase] = useState(null); + const [isLoading, setIsLoading] = useState(false); + const appUserId = group ? group.appUserId : null; + console.log("~~~~~~~~~~~~~~~~~~~~~~~~~~~~caseId in case Type page", caseId); const handleNavigate = () => { navigate("/documents"); }; @@ -45,34 +39,16 @@ const CaseDetailsPage = () => { useEffect(getCase, [caseId, appUserId]); - const handleSuccess = () => { - setIsLoading(true); - setShowUploadModal(false); - setTimeout(handleNavigate, 40000); - }; - const ButtonContent = () => { return (
-
-
@@ -83,52 +59,11 @@ const CaseDetailsPage = () => { return null; } - const HeadingContent = () => { - return ( -
-

Case Details:

-
-

- {subCase?.caption} v. {subCase?.captionTwo} -

-
-

Index Number:

-

{subCase?.caseNumber}

-
-
-
- ); - }; - - const showUp = showUploadModal && subCase !== null ? true : false; - const showCreate = showCreateModal && subCase !== null ? true : false; return ( -
- {isLoading ? : null} - {!isLoading ? : null} - {!isLoading ? ( - showUp ? ( - - ) : null - ) : null} - {!isLoading ? ( - showCreate ? ( - - ) : null - ) : null} - {!isLoading ? ( - subCase !== null ? ( - - ) : null - ) : null} - {!isLoading ? : null} +
+
Case Type Selection
); }; -export default CaseDetailsPage; +export default CaseTypePage; diff --git a/src/styles/case-type-page.scss b/src/styles/case-type-page.scss new file mode 100644 index 0000000..0cf5261 --- /dev/null +++ b/src/styles/case-type-page.scss @@ -0,0 +1,7 @@ +.casetype-container { + display: flex; + flex-direction: column; + margin-right: auto; + margin-left: auto; + align-items: center; +}