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() {
|
2020-08-22 16:33:42 +00:00
|
|
|
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' />
|
2020-08-22 16:33:42 +00:00
|
|
|
<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>
|
2020-08-22 16:33:42 +00:00
|
|
|
<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
|
|
|
);
|
|
|
|
}
|