diff --git a/rsconcept/frontend/src/components/info/InfoUsers.tsx b/rsconcept/frontend/src/components/info/InfoUsers.tsx index b0e8f723..b7010fd3 100644 --- a/rsconcept/frontend/src/components/info/InfoUsers.tsx +++ b/rsconcept/frontend/src/components/info/InfoUsers.tsx @@ -8,13 +8,15 @@ import { CProps } from '../props'; interface InfoUsersProps extends CProps.Styling { items: UserID[]; prefix: string; + header?: string; } -function InfoUsers({ items, className, prefix, ...restProps }: InfoUsersProps) { +function InfoUsers({ items, className, prefix, header, ...restProps }: InfoUsersProps) { const { getUserLabel } = useUsers(); return (
+ {header ?

{header}

: null} {items.map((user, index) => (
{getUserLabel(user)}
))} diff --git a/rsconcept/frontend/src/pages/RSFormPage/EditorRSFormCard/EditorLibraryItem.tsx b/rsconcept/frontend/src/pages/RSFormPage/EditorRSFormCard/EditorLibraryItem.tsx index 0725dc7a..849d7b90 100644 --- a/rsconcept/frontend/src/pages/RSFormPage/EditorRSFormCard/EditorLibraryItem.tsx +++ b/rsconcept/frontend/src/pages/RSFormPage/EditorRSFormCard/EditorLibraryItem.tsx @@ -124,7 +124,7 @@ function EditorLibraryItem({ item, isModified, controller }: EditorLibraryItemPr disabled={isModified || controller.isProcessing || accessLevel < UserLevel.OWNER} /> - +