frontend/src/screens/Dashboard.js

22 lines
555 B
JavaScript
Raw Normal View History

2020-05-13 17:39:43 +00:00
import React from 'react';
import { Panel } from 'rsuite';
2020-08-21 22:08:42 +00:00
import { useAuth } from '../helpers/authContext';
2020-08-21 23:08:18 +00:00
import { NavBar } from '../components';
2020-05-13 17:39:43 +00:00
export default function Dashboard() {
const { authToken, isAuthenticated, currentUser } = useAuth();
2020-08-21 22:08:42 +00:00
2020-05-13 17:39:43 +00:00
return (
2020-08-21 22:08:42 +00:00
<>
<NavBar title='Meeting Planner' />
<Panel header={<h3>Dashboard</h3>} bordered>
2020-08-21 22:08:42 +00:00
<p>This is just experimenting with stuff.</p>
<p>{authToken}</p>
<p>Authenticated: {isAuthenticated.toString()}</p>
<p>Current user: {currentUser.username}</p>
2020-08-21 22:08:42 +00:00
</Panel>
</>
2020-05-13 17:39:43 +00:00
);
}