debian-image-builder-frontend/src/Router.js
Jacob Kozol 4fa71cede8 update style across the project
The eslint updates require style changes in all components.
2022-05-23 12:47:20 +02:00

16 lines
467 B
JavaScript

import React, { lazy } from 'react';
import { Route, Routes } from 'react-router-dom';
const LandingPage = lazy(() => import('./Components/LandingPage/LandingPage'));
const CreateImageWizard = lazy(() =>
import('./Components/CreateImageWizard/CreateImageWizard')
);
export const Router = () => {
return (
<Routes>
<Route path="/imagewizard/*" element={<CreateImageWizard />} />
<Route path="*" element={<LandingPage />} />
</Routes>
);
};