diff options
author | Nathan-SR <144961007+Nathan-SR@users.noreply.github.com> | 2025-05-30 04:07:22 -0400 |
---|---|---|
committer | Nathan-SR <144961007+Nathan-SR@users.noreply.github.com> | 2025-05-30 04:07:22 -0400 |
commit | 312a07364ac8880e74e1b0a911d3e5b380886858 (patch) | |
tree | dc940cf08e9648810b923b07c6fb840318e0ad96 /src/client/views/nodes/DataVizBox/DocCreatorMenu/Menu/TemplatePreviewGrid.tsx | |
parent | 29e5bbe68e02fe1d86e960a634d0580c37612254 (diff) |
linting
Diffstat (limited to 'src/client/views/nodes/DataVizBox/DocCreatorMenu/Menu/TemplatePreviewGrid.tsx')
-rw-r--r-- | src/client/views/nodes/DataVizBox/DocCreatorMenu/Menu/TemplatePreviewGrid.tsx | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/client/views/nodes/DataVizBox/DocCreatorMenu/Menu/TemplatePreviewGrid.tsx b/src/client/views/nodes/DataVizBox/DocCreatorMenu/Menu/TemplatePreviewGrid.tsx index d53853c52..da4851f84 100644 --- a/src/client/views/nodes/DataVizBox/DocCreatorMenu/Menu/TemplatePreviewGrid.tsx +++ b/src/client/views/nodes/DataVizBox/DocCreatorMenu/Menu/TemplatePreviewGrid.tsx @@ -1,6 +1,4 @@ -import { Colors } from "@dash/components/src"; -import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; -import { action, makeObservable, observable, runInAction } from "mobx"; +import { makeObservable, runInAction } from "mobx"; import React from "react"; import ReactLoading from "react-loading"; import { Doc } from "../../../../../../fields/Doc"; @@ -18,10 +16,10 @@ export interface SuggestedTemplatesProps { loading?: boolean; templates: Template[]; title: string; - styles?: string; - optionsButtonOpts?: [IconProp, (...args: any) => any]; - previewBoxLeftButtonOpts?: [IconProp, (...args: any) => any]; - previewBoxRightButtonOpts?: [IconProp, (...args: any) => any]; + styles?: string; // eslint-disable-next-line + optionsButtonOpts?: [IconProp, (...args: any) => any]; // eslint-disable-next-line + previewBoxLeftButtonOpts?: [IconProp, (...args: any) => any]; // eslint-disable-next-line + previewBoxRightButtonOpts?: [IconProp, (...args: any) => any]; } @observer @@ -46,8 +44,9 @@ export class TemplatePreviewGrid extends ObservableReactComponent<SuggestedTempl (<div className="loading-spinner"> <ReactLoading type="spin" color={StrCast(Doc.UserDoc().userVariantColor)} height={30} width={30} /> </div>) - : this.props.templates.map(template => ( + : this.props.templates.map((template, i) => ( <TemplatePreviewBox + key={i} template={template} menu={this.props.menu} leftButtonOpts={["magnifying-glass", (template: Template) => { this.props.menu.setExpandedView(template); this.forceUpdate(); }]} |