diff --git a/client/src/components/HomePage/Dashboard.tsx b/client/src/components/HomePage/Dashboard.tsx new file mode 100644 index 0000000..408087a --- /dev/null +++ b/client/src/components/HomePage/Dashboard.tsx @@ -0,0 +1,46 @@ +import React from 'react'; + +export function Dashboard() { + return ( +
+
+
+
+
+

Groupes de travail

+
+
+ +
+
+
+
+
+
+
+
+

D.à.Ds

+
+
+ +
+
+
TODO
+
+
+
+
+
+
+

Assemblées

+
+
+ +
+
+
TODO
+
+
+
+ ); +} \ No newline at end of file diff --git a/client/src/components/HomePage/HomePage.tsx b/client/src/components/HomePage/HomePage.tsx index 7607cee..5521d49 100644 --- a/client/src/components/HomePage/HomePage.tsx +++ b/client/src/components/HomePage/HomePage.tsx @@ -1,26 +1,27 @@ import React, { useEffect } from 'react'; import { Page } from '../Page'; -import { useSelector, useDispatch } from 'react-redux'; +import { useSelector } from 'react-redux'; import { RootState } from '../../store/reducers/root'; +import { Dashboard } from './Dashboard'; export function HomePage() { const currentUser = useSelector((state: RootState) => state.auth.currentUser); return ( - +
-
-
-
- { - currentUser && currentUser.email ? -

Bonjour {currentUser.name ? currentUser.name : currentUser.email} !

: -

Veuillez vous authentifier.

- } + { + currentUser ? + : +
+
+
+

Veuillez vous authentifier.

+
-
-
+
+ }