diff --git a/src/app.tsx b/src/app.tsx index fa5c684..b31c73b 100644 --- a/src/app.tsx +++ b/src/app.tsx @@ -4,7 +4,7 @@ import './app.css' import { DefaultLayout } from './layouts' import routes from './routes' import "yet-another-react-lightbox/styles.css"; -import { Login } from './pages' +import { Login, NotFound } from './pages' import { Provider } from 'react-redux' import { persistore, store } from './store/config' import { PersistGate } from 'redux-persist/integration/react' @@ -13,27 +13,27 @@ import { PersistGate } from 'redux-persist/integration/react' export function App() { return ( <> - - - - - - } /> - }> - {routes.map(({ path, name, element}) => ( - <> - - - ))} - - - - - + + + + + } /> + }> + {routes.map(({ path, name, element }) => ( + <> + + + ))} + + } /> + + + + ) } diff --git a/src/pages/NotFound/index.tsx b/src/pages/NotFound/index.tsx new file mode 100644 index 0000000..23095ae --- /dev/null +++ b/src/pages/NotFound/index.tsx @@ -0,0 +1,9 @@ +const NotFound = () => ( +
+ +
+) + +export default NotFound; \ No newline at end of file diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 7dc3a56..8be217e 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -5,12 +5,15 @@ import Story from "./Stories"; import NewsEvent from "./NewsEvents"; import LocationDetail from "./LocationDetail"; import Login from './Login'; +import NotFound from "./NotFound"; export { Login, Home, + NotFound, + BestLocation, LocationDetail,