refactor(react19): replace Context.Provider with Context value={}
- 升级 6 个文件的 Context 语法为 React 19 标准 - ThemeProviderContext, ChartContext, AnimationContext, TourContext, AssetStoreContext, RestartContext - 构建验证通过 - 功能完全等价
This commit is contained in:
@@ -50,5 +50,5 @@ export function AnimationProvider({
|
||||
setEnableWavesBackground,
|
||||
}
|
||||
|
||||
return <AnimationContext.Provider value={value}>{children}</AnimationContext.Provider>
|
||||
return <AnimationContext value={value}>{children}</AnimationContext>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user