Skip to content

Commit

Permalink
Upgrade docz
Browse files Browse the repository at this point in the history
  • Loading branch information
fzaninotto committed Jun 28, 2018
1 parent ce7cb7a commit c82c684
Show file tree
Hide file tree
Showing 3 changed files with 360 additions and 207 deletions.
4 changes: 3 additions & 1 deletion docs/components/DocWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ import { Provider } from 'react-redux';
import { createStore } from 'redux';
import TranslationProvider from '../../packages/ra-core/src/i18n/TranslationProvider';

const store = createStore(() => ({ i18n: { locale: 'en' } }));

const DocWrapper = ({ children }) => (
<Provider store={createStore(() => ({ i18n: { locale: 'en' } }))}>
<Provider store={store}>
<TranslationProvider>{children}</TranslationProvider>
</Provider>
);
Expand Down
12 changes: 5 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@
"babel-register": "~6.26.0",
"cheerio": "~1.0.0-rc.2",
"chromedriver": "~2.37.0",
"docz": "^0.2.6",
"docz-plugin-babel6": "^0.2.6",
"docz-theme-default": "^0.2.6",
"docz": "~0.3.4",
"docz-plugin-babel6": "~0.3.4",
"docz-theme-default": "~0.3.4",
"emotion": "^9.2.4",
"eslint": "~4.19.1",
"eslint-config-prettier": "~2.9.0",
"eslint-plugin-import": "~2.10.0",
Expand All @@ -43,8 +44,5 @@
"react-emotion": "^9.2.4",
"selenium-webdriver": "~3.5.0"
},
"workspaces": [
"packages/*",
"examples/*"
]
"workspaces": ["packages/*", "examples/*"]
}

0 comments on commit c82c684

Please sign in to comment.