diff --git a/src/app.tsx b/src/app.tsx index b31c73b..1c261c1 100644 --- a/src/app.tsx +++ b/src/app.tsx @@ -4,36 +4,42 @@ import './app.css' import { DefaultLayout } from './layouts' import routes from './routes' import "yet-another-react-lightbox/styles.css"; -import { Login, NotFound } from './pages' +import { Login, NotFound, Submissions } from './pages' import { Provider } from 'react-redux' import { persistore, store } from './store/config' import { PersistGate } from 'redux-persist/integration/react' +import { ProtectedRoute } from './routes/ProtectedRoute' export function App() { return ( <> - - - - - } /> - }> - {routes.map(({ path, name, element }) => ( - <> - - - ))} - + + + + + } /> + }> + {routes.map(({ path, name, element }) => ( + <> + + + ))} + + + + } /> } /> - - - - + + + + + ) } diff --git a/src/pages/Submissions/index.tsx b/src/pages/Submissions/index.tsx new file mode 100644 index 0000000..a29679b --- /dev/null +++ b/src/pages/Submissions/index.tsx @@ -0,0 +1,9 @@ +function Submissions() { + return ( +
+

Submssions

+
+ ) +} + +export default Submissions; \ No newline at end of file