chore: lint require and how to import react (#30041)

This commit is contained in:
Stephen Zhou
2025-12-23 18:02:10 +08:00
committed by GitHub
parent 72ca3607a3
commit 403adefc07
1078 changed files with 1680 additions and 1216 deletions

View File

@ -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'

View File

@ -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'

View File

@ -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 = {

View File

@ -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'

View File

@ -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,

View File

@ -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'

View File

@ -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[]