From 0eed0b0f20200be70f315fc61d5da9817db59b41 Mon Sep 17 00:00:00 2001 From: Vladislav Syrochkin Date: Thu, 26 Jun 2025 15:36:45 +0500 Subject: [PATCH] refactor(clint-UserEdit): remove login and role on self user --- client/src/components/UserEdit.tsx | 48 ++++++++++++++++-------------- 1 file changed, 26 insertions(+), 22 deletions(-) diff --git a/client/src/components/UserEdit.tsx b/client/src/components/UserEdit.tsx index 8bcef4e..14b430a 100644 --- a/client/src/components/UserEdit.tsx +++ b/client/src/components/UserEdit.tsx @@ -43,23 +43,25 @@ export default function UserEdit({ userId }: UserEditProps) { - - - + {user?.id === currentUser?.id ? undefined : ( + + + + )} @@ -83,19 +85,21 @@ export default function UserEdit({ userId }: UserEditProps) { - - - + {user?.id === currentUser?.id ? undefined : ( + + + + )}