From 4f88904051430ce6c3041211a6f7468aaef914b2 Mon Sep 17 00:00:00 2001 From: Yugay Vasiliy Date: Tue, 6 Aug 2024 16:41:13 +0000 Subject: [PATCH] Removed li elements Modified the namings of checkboxes --- src/fragmentarium/ui/fragment/ScopeEditor.tsx | 31 +++++++++---------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/src/fragmentarium/ui/fragment/ScopeEditor.tsx b/src/fragmentarium/ui/fragment/ScopeEditor.tsx index 33f904a63..327256321 100644 --- a/src/fragmentarium/ui/fragment/ScopeEditor.tsx +++ b/src/fragmentarium/ui/fragment/ScopeEditor.tsx @@ -51,7 +51,9 @@ const ScopeEditor: React.FC = ({ const handleSubmit = async () => { await updateScopes(selectedScopes) } - + const getDisplayScope = (scope: string) => { + return scope.replace('read:', '').replace('-fragments', '') + } return (

Permissions

@@ -59,23 +61,20 @@ const ScopeEditor: React.FC = ({ Records with added permissions are visible only to users who have those permissions.

-
    - {fragmentScopes.map((scope) => ( -
  • - -
  • - ))} -
+ {fragmentScopes.map((scope) => ( +
+ +
+ ))}
) } - export default ScopeEditor