Skip to content

Commit

Permalink
client: Use contexts as a provider
Browse files Browse the repository at this point in the history
  • Loading branch information
jtojnar committed Dec 29, 2024
1 parent fa1d3a5 commit 7052f81
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions client/js/templates/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -817,8 +817,8 @@ export default class App extends React.Component {

render() {
return (
<ConfigurationContext.Provider value={this.props.configuration}>
<LocalizationContext.Provider value={this._}>
<ConfigurationContext value={this.props.configuration}>
<LocalizationContext value={this._}>
<PureApp
navSourcesExpanded={this.state.navSourcesExpanded}
setNavSourcesExpanded={this.setNavSourcesExpanded}
Expand All @@ -841,8 +841,8 @@ export default class App extends React.Component {
tags={this.state.tags}
reloadAll={this.reloadAll}
/>
</LocalizationContext.Provider>
</ConfigurationContext.Provider>
</LocalizationContext>
</ConfigurationContext>
);
}
}
Expand Down

0 comments on commit 7052f81

Please sign in to comment.