diff --git a/front/views/Home.tsx b/front/views/Home.tsx
index a4f7b8e..e564964 100644
--- a/front/views/Home.tsx
+++ b/front/views/Home.tsx
@@ -17,16 +17,16 @@ interface Team {
second_color : string
}
-export default function Home({ lastTactics, allTactics, teams } : { lastTactics : Tactic[] , allTactics : Tactic[], teams : Team[]}) {
+export default function Home({ lastTactics, allTactics, teams, username } : { lastTactics : Tactic[] , allTactics : Tactic[], teams : Team[], username : string}) {
return (
-
+
)
}
-export function Title() {
+export function Title({username} : {username : string}) {
return (
)
diff --git a/src/App/Controller/UserController.php b/src/App/Controller/UserController.php
index 9dcfad5..889efa6 100644
--- a/src/App/Controller/UserController.php
+++ b/src/App/Controller/UserController.php
@@ -30,7 +30,8 @@ class UserController {
$limitNbTactics = 5;
$lastTactics = $this->tactics->getLast($limitNbTactics, $session->getAccount()->getId());
$allTactics = $this->tactics->getAll($session->getAccount()->getId());
-
+ $name = $session->getAccount()->getName();
+
//TODO
if ($this->teams != NULL) {
$teams = $this->teams->getAll($session->getAccount()->getId());
@@ -42,7 +43,8 @@ class UserController {
return ViewHttpResponse::react("views/Home.tsx", [
"lastTactics" => $lastTactics,
"allTactics" => $allTactics,
- "teams" => $teams
+ "teams" => $teams,
+ "username" => $name
]);
// return ViewHttpResponse::react("views/Home.tsx", []);
}