diff --git a/justfile b/justfile
index ccf0bfe..f967f36 100644
--- a/justfile
+++ b/justfile
@@ -3,6 +3,9 @@ _frontend-dev:
test-frontend:
cd ui && pnpm run test
+
+test-frontend-watch:
+ cd ui && pnpm run test:watch
typecheck:
cd ui && tsc -b
diff --git a/ui/src/components/NavigationBar.tsx b/ui/src/components/NavigationBar.tsx
index b1a46ec..72c3108 100644
--- a/ui/src/components/NavigationBar.tsx
+++ b/ui/src/components/NavigationBar.tsx
@@ -31,6 +31,7 @@ import logo from "../assets/icon.jpg";
import { ThemeSwitcher } from "./ThemeSwitcher";
import { useSession } from "../contexts/SessionContext";
import { Text } from "@ui/ui-library/text";
+import { SignOutButton } from "./SignOutButton";
type NavLinkItem = {
isActive?: boolean;
@@ -137,7 +138,7 @@ export function UserMenuPopover({ isCollapsed }: { isCollapsed: boolean }) {
{session?.user?.user_metadata?.full_name}
- Admin
+
diff --git a/ui/src/components/SignOutButton.test.tsx b/ui/src/components/SignOutButton.test.tsx
index f56ee3c..1dd13f6 100644
--- a/ui/src/components/SignOutButton.test.tsx
+++ b/ui/src/components/SignOutButton.test.tsx
@@ -45,7 +45,7 @@ describe("SignOutButton", () => {
renderWithRouter();
// Click the button
- fireEvent.click(screen.getByRole("button", { name: /se déconnecter/i }));
+ fireEvent.click(screen.getByRole("button", { name: /Déconnexion/i }));
// Check if logout was called
expect(mockLogout).toHaveBeenCalled();
diff --git a/ui/src/components/SignOutButton.tsx b/ui/src/components/SignOutButton.tsx
index 058ee9f..b6df5d4 100644
--- a/ui/src/components/SignOutButton.tsx
+++ b/ui/src/components/SignOutButton.tsx
@@ -1,7 +1,56 @@
import { Button } from "../ui-library/button";
import { useLogout } from "../hooks/auth";
+import { LogOutIcon } from "lucide-react";
export const SignOutButton = () => {
- const { mutate: logout } = useLogout();
- return ;
+ const { mutate: logout, isPending } = useLogout();
+
+ return (
+
+
+
+ );
};