example of no-unstable-context-value (#25279)
This commit is contained in:
parent
9964cc202d
commit
bbc43ca50d
1 changed files with 76 additions and 77 deletions
|
|
@ -850,9 +850,7 @@ const Configuration: FC = () => {
|
||||||
<Loading type='area' />
|
<Loading type='area' />
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
const value = {
|
||||||
return (
|
|
||||||
<ConfigContext.Provider value={{
|
|
||||||
appId,
|
appId,
|
||||||
isAPIKeySet,
|
isAPIKeySet,
|
||||||
isTrailFinished: false,
|
isTrailFinished: false,
|
||||||
|
|
@ -926,8 +924,9 @@ const Configuration: FC = () => {
|
||||||
isShowAudioConfig,
|
isShowAudioConfig,
|
||||||
rerankSettingModalOpen,
|
rerankSettingModalOpen,
|
||||||
setRerankSettingModalOpen,
|
setRerankSettingModalOpen,
|
||||||
}}
|
}
|
||||||
>
|
return (
|
||||||
|
<ConfigContext.Provider value={value}>
|
||||||
<FeaturesProvider features={featuresData}>
|
<FeaturesProvider features={featuresData}>
|
||||||
<MittProvider>
|
<MittProvider>
|
||||||
<div className="flex h-full flex-col">
|
<div className="flex h-full flex-col">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue