refactor(react19): replace Context.Provider with Context value={}

- 升级 6 个文件的 Context 语法为 React 19 标准
- ThemeProviderContext, ChartContext, AnimationContext, TourContext, AssetStoreContext, RestartContext
- 构建验证通过
- 功能完全等价
This commit is contained in:
DrSmoothl
2026-03-01 20:02:04 +08:00
parent e1f9936561
commit e9a081d46b
6 changed files with 10 additions and 10 deletions

View File

@@ -90,8 +90,8 @@ export function ThemeProvider({
)
return (
<ThemeProviderContext.Provider value={value}>
<ThemeProviderContext value={value}>
{children}
</ThemeProviderContext.Provider>
</ThemeProviderContext>
)
}