feat: make app configurable

This commit is contained in:
Stavros
2025-01-19 15:04:46 +02:00
parent c0e085ea10
commit 6eccb6d835
11 changed files with 299 additions and 40 deletions

View File

@@ -7,7 +7,7 @@ import { Navigate } from "react-router";
import { Layout } from "../components/layouts/layout";
export const LogoutPage = () => {
const { isLoggedIn } = useUserContext();
const { isLoggedIn, username } = useUserContext();
if (!isLoggedIn) {
return <Navigate to="/login" />;
@@ -43,7 +43,8 @@ export const LogoutPage = () => {
Logout
</Text>
<Text>
You are already logged in, click the button below to log out.
You are currently logged in as {username}, click the button below to
log out.
</Text>
<Button
fullWidth