Skip to content

Commit

Permalink
show tooltip on not defined widgets
Browse files Browse the repository at this point in the history
  • Loading branch information
dbadura committed Jul 17, 2024
1 parent 736fd7d commit 84e58f2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/Extensibility/components-form/GenericList.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export function GenericList({
const schemaPlaceholder = schema.get('placeholder');
const itemTemplate = schema.get('template') || {};
const defaultOpen = schema.get('defaultExpanded') ?? false;
const tooltipContent = schema.get('description');
const [newItemIndex, setNewItemIndex] = useState(0);

const addItem = itemTemplate => {
Expand Down Expand Up @@ -55,6 +56,7 @@ export function GenericList({
return (
<ResourceForm.CollapsibleSection
defaultOpen={defaultOpen}
tooltipContent={t(tooltipContent)}
container
title={tFromStoreKeys(storeKeys, schema)}
nestingLevel={nestingLevel}
Expand Down

0 comments on commit 84e58f2

Please sign in to comment.