Add Dashboard screen

This commit is contained in:
2020-05-13 19:39:43 +02:00
parent 06dc0c455e
commit 8231fa62b4
5 changed files with 25 additions and 1 deletions

View File

@@ -3,6 +3,7 @@ import 'rsuite/lib/styles/index.less';
import { Container } from 'rsuite';
import { BrowserRouter as Router, Switch, Route } from 'react-router-dom';
import Dashboard from './Dashboard';
import Login from './Login';
import Register from './Register';
import NavBar from '../components/Navbar/NavBar';
@@ -22,6 +23,9 @@ export default function App() {
<Container style={containerStyle}>
<NavBar />
<Switch>
<Route path='/' exact>
<Dashboard />
</Route>
<Route path='/login'>
<Login />
</Route>

14
src/screens/Dashboard.js Normal file
View File

@@ -0,0 +1,14 @@
import React from 'react';
import { Panel } from 'rsuite';
const boxStyle = {
margin: '50px 10px',
};
export default function Dashboard() {
return (
<Panel header={<h3>Dashboard</h3>} bordered style={boxStyle}>
<p>This is just experimenting with stuff.</p>
</Panel>
);
}