Skip to content

Commit

Permalink
fix: use Provider instead of DataProvider (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
amcgee authored Nov 14, 2019
1 parent 0f8551d commit ece9424
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/simple-app/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -927,7 +927,7 @@
integrity sha512-w5+C/fHSsuF0am5Tpvz53+tigEZzfz9ahkjXH3BiWxGVxwZGtdHjWfso1T5bJRiKhDTgf76TxIsQiC11W20WyA==

"@dhis2/cli-app-scripts@file:../../cli":
version "1.5.7"
version "1.5.8"
dependencies:
"@babel/core" "^7.6.2"
"@babel/plugin-proposal-class-properties" "^7.4.4"
Expand Down
6 changes: 3 additions & 3 deletions shell/adapter/src/index.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import React from 'react'
import { HeaderBar } from '@dhis2/ui-widgets'
import { DataProvider } from '@dhis2/app-runtime'
import { Provider } from '@dhis2/app-runtime'
import { FatalErrorBoundary } from './FatalErrorBoundary'
import { AuthBoundary } from './AuthBoundary'

const App = ({ url, apiVersion, appName, children }) => (
<FatalErrorBoundary>
<DataProvider baseUrl={url} apiVersion={apiVersion}>
<Provider config={{ baseUrl: url, apiVersion: apiVersion }}>
<HeaderBar appName={appName} />
<AuthBoundary url={url}>{children}</AuthBoundary>
</DataProvider>
</Provider>
</FatalErrorBoundary>
)

Expand Down
2 changes: 1 addition & 1 deletion shell/adapter/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -863,7 +863,7 @@
integrity sha512-w5+C/fHSsuF0am5Tpvz53+tigEZzfz9ahkjXH3BiWxGVxwZGtdHjWfso1T5bJRiKhDTgf76TxIsQiC11W20WyA==

"@dhis2/cli-app-scripts@file:../../cli":
version "1.5.7"
version "1.5.8"
dependencies:
"@babel/core" "^7.6.2"
"@babel/plugin-proposal-class-properties" "^7.4.4"
Expand Down

0 comments on commit ece9424

Please sign in to comment.