diff --git a/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/json-schema-config.tsx b/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/json-schema-config.tsx index b4dac4b58e..a19dccad78 100644 --- a/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/json-schema-config.tsx +++ b/web/app/components/workflow/nodes/llm/components/json-schema-config-modal/json-schema-config.tsx @@ -1,12 +1,12 @@ import type { FC } from 'react' import type { SchemaRoot } from '../../types' -import { RiBracesLine, RiCloseLine, RiTimelineView } from '@remixicon/react' import { useCallback, useState } from 'react' import { useTranslation } from 'react-i18next' import Button from '@/app/components/base/button' import Divider from '@/app/components/base/divider' import Toast from '@/app/components/base/toast' import { JSON_SCHEMA_MAX_DEPTH } from '@/config' +import { cn } from '@/utils/classnames' import { SegmentedControl } from '../../../../../base/segmented-control' import { Type } from '../../types' import { @@ -35,9 +35,17 @@ enum SchemaView { JsonSchema = 'jsonSchema', } +const TimelineViewIcon: FC<{ className?: string }> = ({ className }) => { + return +} + +const BracesIcon: FC<{ className?: string }> = ({ className }) => { + return +} + const VIEW_TABS = [ - { Icon: RiTimelineView, text: 'Visual Editor', value: SchemaView.VisualEditor }, - { Icon: RiBracesLine, text: 'JSON Schema', value: SchemaView.JsonSchema }, + { Icon: TimelineViewIcon, text: 'Visual Editor', value: SchemaView.VisualEditor }, + { Icon: BracesIcon, text: 'JSON Schema', value: SchemaView.JsonSchema }, ] const DEFAULT_SCHEMA: SchemaRoot = { @@ -203,11 +211,11 @@ const JsonSchemaConfig: FC = ({ {/* Header */} - + {t('nodes.llm.jsonSchema.title', { ns: 'workflow' })} - + {/* Content */} @@ -249,7 +257,7 @@ const JsonSchemaConfig: FC = ({ {validationError && } {/* Footer */} - + diff --git a/web/eslint-suppressions.json b/web/eslint-suppressions.json index f3bcadf67c..6364d00af8 100644 --- a/web/eslint-suppressions.json +++ b/web/eslint-suppressions.json @@ -6817,11 +6817,6 @@ "count": 3 } }, - "app/components/workflow/nodes/llm/components/json-schema-config-modal/json-schema-config.tsx": { - "tailwindcss/enforce-consistent-class-order": { - "count": 1 - } - }, "app/components/workflow/nodes/llm/components/json-schema-config-modal/json-schema-generator/generated-result.tsx": { "style/multiline-ternary": { "count": 2