Skip to content

Commit

Permalink
Merge pull request #702 from cozy/exports
Browse files Browse the repository at this point in the history
fix: Do not use module.exports and imports in the same file
  • Loading branch information
ptbrowne authored Aug 17, 2020
2 parents 94c2cb8 + a76b0ce commit efa62f9
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions src/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,28 @@ const updateAccessToken = accessToken => {

const proxiedAPI = createBarProxiedAPI(exposedAPI)

module.exports = {
const {
setBarCenter,
setBarLeft,
setBarRight,
BarCenter,
BarRight,
BarLeft,
setTheme
} = proxiedAPI

const version = __VERSION__

export default {
init,
version: __VERSION__,
...proxiedAPI,
version,
setBarCenter,
setBarLeft,
setBarRight,
BarLeft,
BarRight,
BarCenter,
setTheme,
setLocale,
updateAccessToken
}

0 comments on commit efa62f9

Please sign in to comment.