diff --git a/frontend/src/components/Common/UserMenu.tsx b/frontend/src/components/Common/UserMenu.tsx index c6aa1a9855..5f2b26ad44 100644 --- a/frontend/src/components/Common/UserMenu.tsx +++ b/frontend/src/components/Common/UserMenu.tsx @@ -19,12 +19,7 @@ const UserMenu = () => { - diff --git a/frontend/src/components/Pending/PendingItems.tsx b/frontend/src/components/Pending/PendingItems.tsx index 688ba3ab88..0afc50477d 100644 --- a/frontend/src/components/Pending/PendingItems.tsx +++ b/frontend/src/components/Pending/PendingItems.tsx @@ -1,29 +1,30 @@ -import { Skeleton, Table } from "@chakra-ui/react" +import { Table } from "@chakra-ui/react" +import { SkeletonText } from "../ui/skeleton" const PendingItems = () => ( - ID - Title - Description - Actions + ID + Title + Description + Actions {[...Array(5)].map((_, index) => ( - + - + - + - + ))} diff --git a/frontend/src/components/Pending/PendingUsers.tsx b/frontend/src/components/Pending/PendingUsers.tsx index 013ea5fcf8..c7ac1c73ec 100644 --- a/frontend/src/components/Pending/PendingUsers.tsx +++ b/frontend/src/components/Pending/PendingUsers.tsx @@ -1,33 +1,34 @@ -import { Skeleton, Table } from "@chakra-ui/react" +import { Table } from "@chakra-ui/react" +import { SkeletonText } from "../ui/skeleton" const PendingUsers = () => ( - Full name - Email - Role - Status - Actions + Full name + Email + Role + Status + Actions {[...Array(5)].map((_, index) => ( - + - + - + - + - + ))} diff --git a/frontend/src/components/UserSettings/ChangePassword.tsx b/frontend/src/components/UserSettings/ChangePassword.tsx index c94f970df1..55e6167a49 100644 --- a/frontend/src/components/UserSettings/ChangePassword.tsx +++ b/frontend/src/components/UserSettings/ChangePassword.tsx @@ -47,10 +47,7 @@ const ChangePassword = () => { Change Password - + - Full name - Email - Role - Status - Actions + Full name + Email + Role + Status + Actions {users?.map((user) => ( - + {user.full_name || "N/A"} {currentUser?.id === user.id && ( @@ -79,14 +79,14 @@ function UsersTable() { )} - {user.email} - - {user.is_superuser ? "Superuser" : "User"} + + {user.email} - - {user.is_active ? "Active" : "Inactive"} + + {user.is_superuser ? "Superuser" : "User"} - + {user.is_active ? "Active" : "Inactive"} + - ID - Title - Description - Actions + ID + Title + Description + Actions {items?.map((item) => ( - + {item.id} - + {item.title} {item.description || "N/A"} - + diff --git a/frontend/tests/login.spec.ts b/frontend/tests/login.spec.ts index c1bccf3bc8..e482934916 100644 --- a/frontend/tests/login.spec.ts +++ b/frontend/tests/login.spec.ts @@ -124,4 +124,4 @@ test("Redirects to /login when token is wrong", async ({ page }) => { await page.goto("/settings") await page.waitForURL("/login") await expect(page).toHaveURL("/login") -}) \ No newline at end of file +})