mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-12 01:59:03 +08:00
Fix: use new button (#5384)
This commit is contained in:
parent
a3bd5eba02
commit
4c37847ea4
@ -94,7 +94,7 @@ const ConfigPanel = () => {
|
||||
<Form />
|
||||
<div className={cn('pl-[136px] flex items-center', isMobile && '!pl-0')}>
|
||||
<Button
|
||||
type='primary'
|
||||
variant='primary'
|
||||
className='mr-2 text-sm font-medium'
|
||||
onClick={() => {
|
||||
setCollapsed(true)
|
||||
@ -119,7 +119,7 @@ const ConfigPanel = () => {
|
||||
<Form />
|
||||
<Button
|
||||
className={cn('px-4 py-0 h-9', inputsForms.length && !isMobile && 'ml-[136px]')}
|
||||
type='primary'
|
||||
variant='primary'
|
||||
onClick={handleStartChat}
|
||||
>
|
||||
<MessageDotsCircle className='mr-2 w-4 h-4 text-white' />
|
||||
|
@ -239,7 +239,7 @@ const StepOne = ({
|
||||
<VectorSpaceFull />
|
||||
</div>
|
||||
)}
|
||||
<Button disabled={isShowVectorSpaceFull || !websitePages.length} className={s.submitButton} type='primary' onClick={onStepChange}>{t('datasetCreation.stepOne.button')}</Button>
|
||||
<Button disabled={isShowVectorSpaceFull || !websitePages.length} className={s.submitButton} variant='primary' onClick={onStepChange}>{t('datasetCreation.stepOne.button')}</Button>
|
||||
</>
|
||||
)}
|
||||
{!datasetId && (
|
||||
|
@ -35,7 +35,7 @@ const UrlInput: FC<Props> = ({
|
||||
placeholder='https://docs.dify.ai'
|
||||
/>
|
||||
<Button
|
||||
type='primary'
|
||||
variant='primary'
|
||||
onClick={handleOnRun}
|
||||
className='ml-2 !h-8 text-[13px] font-medium'
|
||||
loading={isRunning}
|
||||
|
@ -27,7 +27,7 @@ const NoData: FC<Props> = ({
|
||||
{t(`${I18N_PREFIX}.fireCrawlNotConfiguredDescription`)}
|
||||
</div>
|
||||
</div>
|
||||
<Button type='primary' onClick={onConfig} className='!h-8 text-[13px] font-medium ' >
|
||||
<Button variant='primary' onClick={onConfig} className='!h-8 text-[13px] font-medium ' >
|
||||
{t(`${I18N_PREFIX}.configure`)}
|
||||
</Button>
|
||||
</div>
|
||||
|
@ -66,7 +66,7 @@ const RenameModal: FC<Props> = ({
|
||||
|
||||
<div className='mt-10 flex justify-end'>
|
||||
<Button className='mr-2 flex-shrink-0' onClick={onClose}>{t('common.operation.cancel')}</Button>
|
||||
<Button type='primary' className='flex-shrink-0' onClick={handleSave} loading={saveLoading}>{t('common.operation.save')}</Button>
|
||||
<Button variant='primary' className='flex-shrink-0' onClick={handleSave} loading={saveLoading}>{t('common.operation.save')}</Button>
|
||||
</div>
|
||||
</Modal>
|
||||
)
|
||||
|
@ -130,7 +130,7 @@ const ConfigFirecrawlModal: FC<Props> = ({
|
||||
</Button>
|
||||
<Button
|
||||
className='h-9 text-sm font-medium'
|
||||
type='primary'
|
||||
variant='primary'
|
||||
onClick={handleSave}
|
||||
loading={isSaving}
|
||||
>
|
||||
|
@ -289,7 +289,7 @@ const ModelLoadBalancingEntryModal: FC<ModelModalProps> = ({
|
||||
</Button>
|
||||
<Button
|
||||
className='h-9 text-sm font-medium'
|
||||
type='primary'
|
||||
variant='primary'
|
||||
onClick={handleSave}
|
||||
disabled={loading || filteredRequiredFormSchemas.some(item => value[item.variable] === undefined)}
|
||||
>
|
||||
|
@ -171,7 +171,7 @@ const ModelLoadBalancingModal = ({ provider, model, open = false, onClose, onSav
|
||||
<div className='flex items-center justify-end gap-2 mt-6'>
|
||||
<Button onClick={onClose}>{t('common.operation.cancel')}</Button>
|
||||
<Button
|
||||
type='primary'
|
||||
variant='primary'
|
||||
onClick={handleSave}
|
||||
disabled={
|
||||
loading
|
||||
|
@ -87,7 +87,7 @@ const LinkEditorComponent = ({
|
||||
autoFocus
|
||||
/>
|
||||
<Button
|
||||
type='primary'
|
||||
variant='primary'
|
||||
className={cn(
|
||||
'py-0 px-2 h-6 text-xs',
|
||||
!url && 'cursor-not-allowed',
|
||||
|
@ -33,6 +33,7 @@
|
||||
"@tailwindcss/line-clamp": "^0.4.4",
|
||||
"@tailwindcss/typography": "^0.5.9",
|
||||
"ahooks": "^3.7.5",
|
||||
"class-variance-authority": "^0.7.0",
|
||||
"classnames": "^2.3.2",
|
||||
"copy-to-clipboard": "^3.3.3",
|
||||
"crypto-js": "^4.2.0",
|
||||
@ -137,4 +138,4 @@
|
||||
"@types/react": "~18.2.0",
|
||||
"@types/react-dom": "~18.2.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1920,6 +1920,13 @@ ci-info@^3.6.1:
|
||||
resolved "https://registry.npmjs.org/ci-info/-/ci-info-3.8.0.tgz"
|
||||
integrity sha512-eXTggHWSooYhq49F2opQhuHWgzucfF2YgODK4e1566GQs5BIfP30B0oenwBJHfWxAs2fyPB1s7Mg949zLf61Yw==
|
||||
|
||||
class-variance-authority@^0.7.0:
|
||||
version "0.7.0"
|
||||
resolved "https://registry.npmjs.org/class-variance-authority/-/class-variance-authority-0.7.0.tgz#1c3134d634d80271b1837452b06d821915954522"
|
||||
integrity sha512-jFI8IQw4hczaL4ALINxqLEXQbWcNjoSkloa4IaufXCJr6QawJyw7tuRysRsrE8w2p/4gGaxKIt/hX3qz/IbD1A==
|
||||
dependencies:
|
||||
clsx "2.0.0"
|
||||
|
||||
classcat@^5.0.3, classcat@^5.0.4:
|
||||
version "5.0.4"
|
||||
resolved "https://registry.npmjs.org/classcat/-/classcat-5.0.4.tgz"
|
||||
@ -1975,6 +1982,11 @@ client-only@0.0.1, client-only@^0.0.1:
|
||||
resolved "https://registry.npmjs.org/client-only/-/client-only-0.0.1.tgz"
|
||||
integrity sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==
|
||||
|
||||
clsx@2.0.0:
|
||||
version "2.0.0"
|
||||
resolved "https://registry.npmjs.org/clsx/-/clsx-2.0.0.tgz#12658f3fd98fafe62075595a5c30e43d18f3d00b"
|
||||
integrity sha512-rQ1+kcj+ttHG0MKVGBUXwayCCF1oh39BF5COIpRzuCEv8Mwjv0XucrI2ExNTOn9IlLifGClWQcU9BrZORvtw6Q==
|
||||
|
||||
code-inspector-core@0.13.0:
|
||||
version "0.13.0"
|
||||
resolved "https://registry.npmjs.org/code-inspector-core/-/code-inspector-core-0.13.0.tgz"
|
||||
|
Loading…
x
Reference in New Issue
Block a user