|
@@ -1,6 +1,7 @@
|
1
|
1
|
import React, { useEffect } from "react";
|
2
|
2
|
import { useLocation } from "react-router";
|
3
|
3
|
import { useSelector } from "react-redux";
|
|
4
|
+import { FormattedMessage } from "react-intl";
|
4
|
5
|
|
5
|
6
|
import Cookies from "js-cookie";
|
6
|
7
|
|
|
@@ -14,13 +15,27 @@ const Home = () => {
|
14
|
15
|
<h2>Home</h2>
|
15
|
16
|
{currentUser && (
|
16
|
17
|
<div>
|
17
|
|
- <p>Utilisateurice connecté·e, bravo !</p>
|
|
18
|
+ <p>
|
|
19
|
+ <FormattedMessage
|
|
20
|
+ id="home.connected"
|
|
21
|
+ defaultMessage="Utilisateurice connecté·e - {what}"
|
|
22
|
+ description="verification header - connected"
|
|
23
|
+ values={{ what: "react-intl" }}
|
|
24
|
+ />
|
|
25
|
+ </p>
|
18
|
26
|
</div>
|
19
|
27
|
)}
|
20
|
28
|
|
21
|
29
|
{!currentUser && (
|
22
|
30
|
<div>
|
23
|
|
- <p>Utilisateurice non connecté·e.</p>
|
|
31
|
+ <p>
|
|
32
|
+ <FormattedMessage
|
|
33
|
+ id="home.notConnected"
|
|
34
|
+ defaultMessage="Utilisateurice non connecté·e - {what}"
|
|
35
|
+ description="verification header - not connected"
|
|
36
|
+ values={{ what: "react-intl" }}
|
|
37
|
+ />
|
|
38
|
+ </p>
|
24
|
39
|
</div>
|
25
|
40
|
)}
|
26
|
41
|
<p>{location.state && location.state.status}</p>
|