Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handling Module Issues, Enhancing Error Boundaries, and further Enhancements to Code #176

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions web_check.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import { Routes, Route, Outlet } from 'react-router-dom';
import Home from 'web-check-live/views/Home';
import Results from 'web-check-live/views/Results';
import About from 'web-check-live/views/About';
import NotFound from 'web-check-live/views/NotFound';
import ErrorBoundary from 'web-check-live/components/boundaries/PageError';
import GlobalStyles from './styles/globals';

const Layout = () => (
<>
<GlobalStyles />
<Outlet />
</>
);

export default function App() {
return (
<ErrorBoundary>
<Routes>
<Route path="/check" element={<Layout />}>
<Route index element={<Home />} />
<Route path="home" element={<Home />} />
<Route path="about" element={<About />} />
<Route path=":urlToScan" element={<Results />} />
<Route path="*" element={<NotFound />} />
</Route>
</Routes>
</ErrorBoundary>
);
}