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

@@ -50,5 +50,5 @@ export function AnimationProvider({
setEnableWavesBackground,
}
return <AnimationContext.Provider value={value}>{children}</AnimationContext.Provider>
return <AnimationContext value={value}>{children}</AnimationContext>
}