scripts/apps/authoring-react/generic-widgets/comments/index.tsx
Function getCommentsWidgetGeneric
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function getCommentsWidgetGeneric<T>(
getComments: (entityId: string) => Promise<Array<IComment>>,
addComment: (entityId: string, text: string) => Promise<void>,
isAllowed: (entity: T) => boolean,
) {