refactor: spilt context for better hmr (#33033)

This commit is contained in:
Stephen Zhou
2026-03-05 15:54:56 +08:00
committed by GitHub
parent f3c840a60e
commit f487b680f5
191 changed files with 645 additions and 615 deletions

View File

@ -11,7 +11,7 @@ const mockSetPluginDefaultCredential = vi.fn().mockResolvedValue({})
const mockUpdatePluginCredential = vi.fn().mockResolvedValue({})
const mockNotify = vi.fn()
vi.mock('@/app/components/base/toast', () => ({
vi.mock('@/app/components/base/toast/context', () => ({
useToastContext: () => ({
notify: mockNotify,
}),

View File

@ -5,7 +5,7 @@ import {
useState,
} from 'react'
import { useTranslation } from 'react-i18next'
import { useToastContext } from '@/app/components/base/toast'
import { useToastContext } from '@/app/components/base/toast/context'
import {
useDeletePluginCredentialHook,
useSetPluginDefaultCredentialHook,