mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 02:18:08 +08:00
feat: enhance configuration and environment setup for SSH sandbox and Creators Platform; update local excludes and improve component logic in the web app
This commit is contained in:
@ -18,7 +18,6 @@ export const useAnthropicCheckPay = () => {
|
||||
|
||||
useEffect(() => {
|
||||
if (providerName === 'anthropic' && (paymentResult === 'succeeded' || paymentResult === 'cancelled')) {
|
||||
// eslint-disable-next-line react-hooks-extra/no-direct-set-state-in-use-effect
|
||||
setConfirm({
|
||||
type: paymentResult === 'succeeded' ? 'info' : 'warning',
|
||||
title: paymentResult === 'succeeded' ? t('actionMsg.paySucceeded', { ns: 'common' }) : t('actionMsg.payCancelled', { ns: 'common' }),
|
||||
@ -38,7 +37,6 @@ export const useBillingPay = () => {
|
||||
|
||||
useEffect(() => {
|
||||
if (paymentType === 'billing' && (paymentResult === 'succeeded' || paymentResult === 'cancelled')) {
|
||||
// eslint-disable-next-line react-hooks-extra/no-direct-set-state-in-use-effect
|
||||
setConfirm({
|
||||
type: paymentResult === 'succeeded' ? 'info' : 'warning',
|
||||
title: paymentResult === 'succeeded' ? t('actionMsg.paySucceeded', { ns: 'common' }) : t('actionMsg.payCancelled', { ns: 'common' }),
|
||||
@ -66,14 +64,12 @@ export const useCheckNotion = () => {
|
||||
useEffect(() => {
|
||||
if (type === 'notion') {
|
||||
if (notionError) {
|
||||
// eslint-disable-next-line react-hooks-extra/no-direct-set-state-in-use-effect
|
||||
setConfirm({
|
||||
type: 'warning',
|
||||
title: notionError,
|
||||
})
|
||||
}
|
||||
else if (notionCode) {
|
||||
// eslint-disable-next-line react-hooks-extra/no-direct-set-state-in-use-effect
|
||||
setCanBinding(true)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user