first commit
This commit is contained in:
18
src/dashboard.tsx
Normal file
18
src/dashboard.tsx
Normal file
@@ -0,0 +1,18 @@
|
||||
import React from 'react';
|
||||
import { Routes, Route, Navigate } from 'react-router-dom';
|
||||
|
||||
import { URLs } from './__data__/urls';
|
||||
|
||||
const Hello = () => <h1>Hello</h1>;
|
||||
|
||||
export const Dashboard = () => {
|
||||
return (
|
||||
<Routes>
|
||||
<Route
|
||||
path={URLs.baseUrl}
|
||||
element={<Navigate replace to={URLs.auth.url} />}
|
||||
/>
|
||||
<Route path={URLs.auth.url} element={<Hello />} />
|
||||
</Routes>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user