2020-08-09 10:51:02 +02:00
|
|
|
import React from 'react';
|
|
|
|
import { Page } from '../Page';
|
|
|
|
import { Dashboard } from './Dashboard';
|
2020-08-09 15:30:06 +02:00
|
|
|
import { useUserProfile } from '../../gql/queries/user';
|
2020-08-09 10:51:02 +02:00
|
|
|
|
|
|
|
export function DashboardPage() {
|
2020-08-09 15:30:06 +02:00
|
|
|
const { user } = useUserProfile();
|
2020-08-09 10:51:02 +02:00
|
|
|
return (
|
|
|
|
<Page title="Tableau de bord">
|
|
|
|
<section className="mt-5">
|
2020-08-09 15:30:06 +02:00
|
|
|
<div className="container is-fluid">
|
|
|
|
<h2 className="subtitle is-size-3">Bonjour <span>{user.name !== '' ? user.name : ' utilisateur mystère'}</span> ! Sur quel projet souhaitez vous travailler aujourd'hui ?</h2>
|
|
|
|
<Dashboard />
|
|
|
|
</div>
|
2020-08-09 10:51:02 +02:00
|
|
|
</section>
|
|
|
|
</Page>
|
|
|
|
);
|
|
|
|
}
|