mirror of
https://github.com/langgenius/dify.git
synced 2026-05-03 00:48:04 +08:00
chore: lint require and how to import react (#30041)
This commit is contained in:
@ -1,7 +1,8 @@
|
||||
'use client'
|
||||
import type { FC, ReactNode } from 'react'
|
||||
import { RiDeleteBinLine } from '@remixicon/react'
|
||||
import React, { useCallback, useMemo } from 'react'
|
||||
import * as React from 'react'
|
||||
import { useCallback, useMemo } from 'react'
|
||||
import Checkbox from '@/app/components/base/checkbox'
|
||||
import Input from '@/app/components/base/input'
|
||||
import { SimpleSelect } from '@/app/components/base/select'
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
import type { FC } from 'react'
|
||||
import type { WebhookHeader } from '../types'
|
||||
import type { ColumnConfig, GenericTableRow } from './generic-table'
|
||||
import React from 'react'
|
||||
import * as React from 'react'
|
||||
import { useTranslation } from 'react-i18next'
|
||||
import GenericTable from './generic-table'
|
||||
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
'use client'
|
||||
import type { FC } from 'react'
|
||||
import React, { useRef } from 'react'
|
||||
import * as React from 'react'
|
||||
import { useRef } from 'react'
|
||||
import { cn } from '@/utils/classnames'
|
||||
|
||||
type ParagraphInputProps = {
|
||||
|
||||
@ -2,7 +2,8 @@
|
||||
import type { FC } from 'react'
|
||||
import type { WebhookParameter } from '../types'
|
||||
import type { ColumnConfig, GenericTableRow } from './generic-table'
|
||||
import React, { useMemo } from 'react'
|
||||
import * as React from 'react'
|
||||
import { useMemo } from 'react'
|
||||
import { useTranslation } from 'react-i18next'
|
||||
import { VarType } from '@/app/components/workflow/types'
|
||||
import { createParameterTypeOptions, normalizeParameterType } from '../utils/parameter-type-utils'
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import type { FC } from 'react'
|
||||
import type { WebhookTriggerNodeType } from './types'
|
||||
import type { NodeProps } from '@/app/components/workflow/types'
|
||||
import React from 'react'
|
||||
import * as React from 'react'
|
||||
|
||||
const Node: FC<NodeProps<WebhookTriggerNodeType>> = ({
|
||||
data,
|
||||
|
||||
@ -3,7 +3,8 @@ import type { HttpMethod, WebhookTriggerNodeType } from './types'
|
||||
import type { NodePanelProps } from '@/app/components/workflow/types'
|
||||
|
||||
import copy from 'copy-to-clipboard'
|
||||
import React, { useEffect, useRef, useState } from 'react'
|
||||
import * as React from 'react'
|
||||
import { useEffect, useRef, useState } from 'react'
|
||||
import { useTranslation } from 'react-i18next'
|
||||
import { InputNumber } from '@/app/components/base/input-number'
|
||||
import InputWithCopy from '@/app/components/base/input-with-copy'
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import type { FC } from 'react'
|
||||
import type { Variable } from '@/app/components/workflow/types'
|
||||
import React from 'react'
|
||||
import * as React from 'react'
|
||||
|
||||
type OutputVariablesContentProps = {
|
||||
variables?: Variable[]
|
||||
|
||||
Reference in New Issue
Block a user