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

@@ -52,7 +52,7 @@ export function AssetStoreProvider({ children }: AssetStoreProviderProps) {
}
}, [])
return <AssetStoreContext.Provider value={value}>{children}</AssetStoreContext.Provider>
return <AssetStoreContext value={value}>{children}</AssetStoreContext>
}
export function useAssetStore() {