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

@ -5,7 +5,8 @@ import type { ValueSelector, Var } from '@/app/components/workflow/types'
import { RiDeleteBinLine } from '@remixicon/react'
import { produce } from 'immer'
import { noop } from 'lodash-es'
import React, { useCallback } from 'react'
import * as React from 'react'
import { useCallback } from 'react'
import { useTranslation } from 'react-i18next'
import ActionButton from '@/app/components/base/action-button'
import Input from '@/app/components/base/input'

View File

@ -1,7 +1,7 @@
import type { FC } from 'react'
import type { AssignerNodeType } from './types'
import type { Node, NodeProps } from '@/app/components/workflow/types'
import React from 'react'
import * as React from 'react'
import { useTranslation } from 'react-i18next'
import { useNodes } from 'reactflow'
import Badge from '@/app/components/base/badge'

View File

@ -4,7 +4,7 @@ import type { NodePanelProps } from '@/app/components/workflow/types'
import {
RiAddLine,
} from '@remixicon/react'
import React from 'react'
import * as React from 'react'
import { useTranslation } from 'react-i18next'
import ActionButton from '@/app/components/base/action-button'
import VarList from './components/var-list'