mirror of
https://github.com/Lissy93/web-check.git
synced 2025-05-12 02:04:29 +02:00
Merge 7571ba0072
into 50a11a5f50
This commit is contained in:
commit
117df0d2c0
30
web_check.tsx
Normal file
30
web_check.tsx
Normal file
@ -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>
|
||||||
|
);
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user