mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 02:18:08 +08:00
refactor(skill): remove React.FC type annotations from all components
Replace FC<Props> pattern with direct props typing in function parameters for better TypeScript inference and modern React best practices.
This commit is contained in:
@ -1,12 +1,11 @@
|
||||
'use client'
|
||||
|
||||
import type { FC } from 'react'
|
||||
import { RiAddCircleFill, RiUploadLine } from '@remixicon/react'
|
||||
import { memo } from 'react'
|
||||
import { useTranslation } from 'react-i18next'
|
||||
import ActionCard from './action-card'
|
||||
|
||||
const CreateImportSection: FC = () => {
|
||||
const CreateImportSection = () => {
|
||||
const { t } = useTranslation('workflow')
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user