From f18679835caddcac5d3162b7b9fa6321e159ad22 Mon Sep 17 00:00:00 2001 From: Anastasiia Solop <35258279+anastasiya1155@users.noreply.github.com> Date: Tue, 30 Jan 2024 12:54:30 -0500 Subject: [PATCH] fix ts issue with file-icons-js import (#1220) --- client/src/Project/CurrentTabContent/ChatTab/Input/InputCore.tsx | 1 + client/src/Project/CurrentTabContent/ChatTab/Input/nodes.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/client/src/Project/CurrentTabContent/ChatTab/Input/InputCore.tsx b/client/src/Project/CurrentTabContent/ChatTab/Input/InputCore.tsx index ad66183acb..7f680be5b7 100644 --- a/client/src/Project/CurrentTabContent/ChatTab/Input/InputCore.tsx +++ b/client/src/Project/CurrentTabContent/ChatTab/Input/InputCore.tsx @@ -11,6 +11,7 @@ import { useNodeViews, } from '@nytimes/react-prosemirror'; import { schema as basicSchema } from 'prosemirror-schema-basic'; +// @ts-ignore import * as icons from 'file-icons-js'; import { useTranslation } from 'react-i18next'; import { InputEditorContent, ParsedQueryType } from '../../../../types/general'; diff --git a/client/src/Project/CurrentTabContent/ChatTab/Input/nodes.ts b/client/src/Project/CurrentTabContent/ChatTab/Input/nodes.ts index b78a04715a..0921c27694 100644 --- a/client/src/Project/CurrentTabContent/ChatTab/Input/nodes.ts +++ b/client/src/Project/CurrentTabContent/ChatTab/Input/nodes.ts @@ -1,3 +1,4 @@ +// @ts-ignore import * as icons from 'file-icons-js'; import { type AttributeSpec, type NodeSpec } from 'prosemirror-model'; import { getFileExtensionForLang, splitPath } from '../../../../utils';