diff options
author | Nathan-SR <144961007+Nathan-SR@users.noreply.github.com> | 2025-05-11 02:08:38 -0400 |
---|---|---|
committer | Nathan-SR <144961007+Nathan-SR@users.noreply.github.com> | 2025-05-11 02:08:38 -0400 |
commit | 59678e34dad0b6587f28ec642c84f6c6ee06543b (patch) | |
tree | 2597f29d9dca5dbbd8f29be589f56d7f005c927d /src/client/views/nodes/DataVizBox/DocCreatorMenu/Menu/TemplatePreviewGrid.tsx | |
parent | 6e66ab2ab9b5b6f988230aac83ac712b43ccfe3a (diff) |
firefly templates correctly loading
Diffstat (limited to 'src/client/views/nodes/DataVizBox/DocCreatorMenu/Menu/TemplatePreviewGrid.tsx')
-rw-r--r-- | src/client/views/nodes/DataVizBox/DocCreatorMenu/Menu/TemplatePreviewGrid.tsx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client/views/nodes/DataVizBox/DocCreatorMenu/Menu/TemplatePreviewGrid.tsx b/src/client/views/nodes/DataVizBox/DocCreatorMenu/Menu/TemplatePreviewGrid.tsx index fb246a0a0..e78109b62 100644 --- a/src/client/views/nodes/DataVizBox/DocCreatorMenu/Menu/TemplatePreviewGrid.tsx +++ b/src/client/views/nodes/DataVizBox/DocCreatorMenu/Menu/TemplatePreviewGrid.tsx @@ -17,9 +17,9 @@ export interface SuggestedTemplatesProps { loading?: boolean; templates: Template[]; title: string; - optionsButtonOpts?: [string, (...args: any) => any]; - previewBoxLeftButtonOpts?: [string, (...args: any) => any]; - previewBoxRightButtonOpts?: [string, (...args: any) => any]; + optionsButtonOpts?: [IconProp, (...args: any) => any]; + previewBoxLeftButtonOpts?: [IconProp, (...args: any) => any]; + previewBoxRightButtonOpts?: [IconProp, (...args: any) => any]; setupButtonClick: (e: React.PointerEvent, func: () => void) => void; } @@ -45,7 +45,7 @@ export class TemplatePreviewGrid extends ObservableReactComponent<SuggestedTempl template={template} menu={this.props.menu} leftButtonOpts={["magnifying-glass", (template: Template) => { this.props.menu.setExpandedView(template); this.forceUpdate(); }]} - rightButtonOpts={["plus", (template: Template) => {}]} + rightButtonOpts={this._props.previewBoxRightButtonOpts} /> ))} </div> |