Skip to content

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredsbt committed May 21, 2024
1 parent 7238c37 commit 1d7310a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 21 deletions.
37 changes: 21 additions & 16 deletions frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
Candidates,
Login,
PrescreeningForm,
TestModals,
TestCongratulations,
ThankyouForApplying,
} from "./pages/index.ts";

Expand All @@ -22,21 +22,26 @@ function Layout() {

function App() {
return (
<div className="app-container">
<Routes>
<Route path="/" element={<Layout />}>
<Route index element={<Candidates />} />
<Route path="path1" element={<Application path={1} />} />
<Route path="path2" element={<Application path={2} />} />
<Route path="path3" element={<Application path={3} />} />
<Route path="path4" element={<Application path={4} />} />
<Route path="candidates" element={<Candidates />} />
<Route path="prescreening" element={<PrescreeningForm />} />
<Route path="ThankYouForApplying" element={<ThankyouForApplying />} />
</Route>
<Route path="test-modals" element={<TestModals />} />
</Routes>
</div>
<AuthProvider>
<FormProvider>
<div className="app-container">
<Routes>
<Route path="/" element={<Layout />}>
<Route index element={<Candidates />} />
<Route path="path1" element={<Application path={1} />} />
<Route path="path2" element={<Application path={2} />} />
<Route path="path3" element={<Application path={3} />} />
<Route path="path4" element={<Application path={4} />} />
<Route path="candidates" element={<Candidates />} />
<Route path="prescreening" element={<PrescreeningForm />} />
<Route path="ThankyouForApplying" element={<ThankyouForApplying />} />
<Route path="TestCongratulations" element={<TestCongratulations />} />
</Route>
<Route path="login" element={<Login />} />
</Routes>
</div>
</FormProvider>
</AuthProvider>
);
}

Expand Down
8 changes: 3 additions & 5 deletions frontend/src/pages/Application.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,6 @@ export const Application: React.FC<ApplicationProps> = ({ path }: ApplicationPro
window.scrollTo({ top: 0, behavior: "instant" });
}

if (pageNum === 5) {
// toggle Congratulations Modal
}

if (pageNum === 5) {
setConfirmSubmissionModalOpen(true);
}
Expand Down Expand Up @@ -144,7 +140,9 @@ export const Application: React.FC<ApplicationProps> = ({ path }: ApplicationPro
/>
<ConfirmSubmissionModal
isOpen={confirmSubmissionModalOpen}
onClose={() => setConfirmSubmissionModalOpen(false)}
onClose={() => {
setConfirmSubmissionModalOpen(false);
}}
onSubmit={function (): void {
throw new Error("Function not implemented.");
}}
Expand Down

0 comments on commit 1d7310a

Please sign in to comment.