diff --git a/public/locales/de/translation.json b/public/locales/de/translation.json index b26785e..6d2cb02 100644 --- a/public/locales/de/translation.json +++ b/public/locales/de/translation.json @@ -270,7 +270,17 @@ "buttonInfo": "Nachdem Sie Ihr Passwort geändert haben, werden Sie abgemeldet und müssen sich erneut anmelden." }, "yourSessions": { - "cardTitle": "Ihre Sitzungen" + "cardTitle": "Ihre Sitzungen", + "tagCurrentSession": "Aktuelle Sitzung", + "tableColumns": { + "device": "Gerät", + "browser": "Browser", + "lastUsed": "Zuletzt verwendet" + }, + "popconfirm": { + "title": "Sitzung abmelden", + "description": "Möchten Sie diese Sitzung wirklich abmelden?" + } }, "deleteAccount": { "cardTitle": "Konto löschen" diff --git a/public/locales/en/translation.json b/public/locales/en/translation.json index d46db48..6a2b669 100644 --- a/public/locales/en/translation.json +++ b/public/locales/en/translation.json @@ -279,7 +279,17 @@ } }, "yourSessions": { - "cardTitle": "Your sessions" + "cardTitle": "Your sessions", + "tagCurrentSession": "Current session", + "tableColumns": { + "device": "Device", + "browser": "Browser", + "lastUsed": "Last used" + }, + "popconfirm": { + "title": "Delete session", + "description": "Are you sure you want to delete this session?" + } }, "deleteAccount": { "cardTitle": "Delete account" diff --git a/src/Pages/UserProfile/index.js b/src/Pages/UserProfile/index.js index cc6b1b5..35d4755 100644 --- a/src/Pages/UserProfile/index.js +++ b/src/Pages/UserProfile/index.js @@ -2,15 +2,18 @@ import { Button, Card, Form, + Popconfirm, Select, Skeleton, Space, Switch, Tabs, + Tag, notification, } from "antd"; import { EncodeStringToBase64, + FormatDatetime, handleLogout, myFetch, showInputsInvalidNotification, @@ -29,6 +32,7 @@ import { } from "../../Components/MyFormInputs"; import { MySupsenseFallback } from "../../Components/MySupsenseFallback"; import { useSideBarContext } from "../../Contexts/SideBarContext"; +import MyTable from "../../Components/MyTable"; const globalRequestStatePreview = { global: RequestState.INIT, @@ -472,11 +476,113 @@ function ChangePassword({ } function YourSessions() { - useEffect(() => { - console.log("your sessions"); - }, []); + const { t } = useTranslation(); - return