mirror of
https://github.com/langgenius/dify.git
synced 2026-05-03 08:58:09 +08:00
chore: remove frontend changes
This commit is contained in:
@ -1,10 +1,10 @@
|
||||
import type { FC } from 'react'
|
||||
import { memo, useEffect } from 'react'
|
||||
import type { NodeProps } from '@/app/components/workflow/types'
|
||||
import { InstallPluginButton } from '@/app/components/workflow/nodes/_base/components/install-plugin-button'
|
||||
import { useNodePluginInstallation } from '@/app/components/workflow/hooks/use-node-plugin-installation'
|
||||
import { useNodeDataUpdate } from '@/app/components/workflow/hooks/use-node-data-update'
|
||||
import type { DataSourceNodeType } from './types'
|
||||
import type { NodeProps } from '@/app/components/workflow/types'
|
||||
import { memo, useEffect } from 'react'
|
||||
import { useNodeDataUpdate } from '@/app/components/workflow/hooks/use-node-data-update'
|
||||
import { useNodePluginInstallation } from '@/app/components/workflow/hooks/use-node-plugin-installation'
|
||||
import { InstallPluginButton } from '@/app/components/workflow/nodes/_base/components/install-plugin-button'
|
||||
|
||||
const Node: FC<NodeProps<DataSourceNodeType>> = ({
|
||||
id,
|
||||
@ -39,15 +39,15 @@ const Node: FC<NodeProps<DataSourceNodeType>> = ({
|
||||
return null
|
||||
|
||||
return (
|
||||
<div className='relative mb-1 px-3 py-1'>
|
||||
<div className='pointer-events-auto absolute right-3 top-[-32px] z-40'>
|
||||
<div className="relative mb-1 px-3 py-1">
|
||||
<div className="pointer-events-auto absolute right-3 top-[-32px] z-40">
|
||||
<InstallPluginButton
|
||||
size='small'
|
||||
size="small"
|
||||
extraIdentifiers={[
|
||||
data.plugin_id,
|
||||
data.provider_name,
|
||||
].filter(Boolean) as string[]}
|
||||
className='!font-medium !text-text-accent'
|
||||
className="!font-medium !text-text-accent"
|
||||
uniqueIdentifier={uniqueIdentifier!}
|
||||
onSuccess={onInstallSuccess}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user