refactor(web): update frontend toast call sites to use the new shortcut API (#33808)

Signed-off-by: yyh <yuanyouhuilyz@gmail.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
yyh
2026-03-20 16:02:22 +08:00
committed by GitHub
co-authored by autofix-ci[bot]
parent ac87704685
commit 27ed40225d
75 changed files with 391 additions and 706 deletions
+1 -3
View File
@@ -133,9 +133,7 @@ export const ProviderContextProvider = ({
const quota = anthropic.system_configuration.quota_configurations.find(item => item.quota_type === anthropic.system_configuration.current_quota_type)
if (quota && quota.is_valid && quota.quota_used < quota.quota_limit) {
localStorage.setItem('anthropic_quota_notice', 'true')
toast.add({
type: 'info',
title: t('provider.anthropicHosted.trialQuotaTip', { ns: 'common' }),
toast.info(t('provider.anthropicHosted.trialQuotaTip', { ns: 'common' }), {
timeout: 60000,
})
}