mirror of
https://github.com/langgenius/dify.git
synced 2026-05-05 18:08:07 +08:00
chore(web): new lint setup (#30020)
Co-authored-by: yyh <yuanyouhuilyz@gmail.com>
This commit is contained in:
@ -1,10 +1,10 @@
|
||||
import type { FC, ReactNode } from 'react'
|
||||
import React, { memo } from 'react'
|
||||
import Card from '@/app/components/plugins/card'
|
||||
import Modal from '@/app/components/base/modal'
|
||||
import Button from '@/app/components/base/button'
|
||||
import type { Plugin } from '../types'
|
||||
import type { UseMutationResult } from '@tanstack/react-query'
|
||||
import type { FC, ReactNode } from 'react'
|
||||
import type { Plugin } from '../types'
|
||||
import React, { memo } from 'react'
|
||||
import Button from '@/app/components/base/button'
|
||||
import Modal from '@/app/components/base/modal'
|
||||
import Card from '@/app/components/plugins/card'
|
||||
|
||||
type Props = {
|
||||
plugin: Plugin
|
||||
@ -35,33 +35,33 @@ const PluginMutationModal: FC<Props> = ({
|
||||
<Modal
|
||||
isShow={true}
|
||||
onClose={onCancel}
|
||||
className='min-w-[560px]'
|
||||
className="min-w-[560px]"
|
||||
closable
|
||||
title={modelTitle}
|
||||
>
|
||||
<div className='system-md-regular mb-2 mt-3 text-text-secondary'>
|
||||
<div className="system-md-regular mb-2 mt-3 text-text-secondary">
|
||||
{description}
|
||||
</div>
|
||||
<div className='flex flex-wrap content-start items-start gap-1 self-stretch rounded-2xl bg-background-section-burn p-2'>
|
||||
<div className="flex flex-wrap content-start items-start gap-1 self-stretch rounded-2xl bg-background-section-burn p-2">
|
||||
<Card
|
||||
installed={mutation.isSuccess}
|
||||
payload={plugin}
|
||||
className='w-full'
|
||||
className="w-full"
|
||||
titleLeft={cardTitleLeft}
|
||||
/>
|
||||
</div>
|
||||
<div className='flex items-center gap-2 self-stretch pt-5'>
|
||||
<div className="flex items-center gap-2 self-stretch pt-5">
|
||||
<div>
|
||||
{modalBottomLeft}
|
||||
</div>
|
||||
<div className='ml-auto flex gap-2'>
|
||||
<div className="ml-auto flex gap-2">
|
||||
{!mutation.isPending && (
|
||||
<Button onClick={onCancel}>
|
||||
{cancelButtonText}
|
||||
</Button>
|
||||
)}
|
||||
<Button
|
||||
variant='primary'
|
||||
variant="primary"
|
||||
loading={mutation.isPending}
|
||||
onClick={mutate}
|
||||
disabled={mutation.isPending}
|
||||
|
||||
Reference in New Issue
Block a user