Skip to content

Commit 2a6b23c

Browse files
authored
Merge pull request #36 from lumapps/fix/redux-store-import
fix(index): import store from playground
2 parents 8f6eca0 + 92e980c commit 2a6b23c

File tree

3 files changed

+15
-11
lines changed

3 files changed

+15
-11
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "create-lumapps-extension",
3-
"version": "0.4.0",
3+
"version": "0.4.2",
44
"description": "",
55
"author": "lab@lumapps.com",
66
"main": "index.js",

template-react-ts/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "template-react-ts",
3-
"version": "0.4.0",
3+
"version": "0.4.2",
44
"private": true,
55
"dependencies": {
66
"@lumapps-extensions-playground/common": "^1.0.0",
@@ -9,7 +9,7 @@
99
"@lumx/icons": "^1.0.7",
1010
"@lumx/react": "^1.0.7",
1111
"lodash": "^4.17.21",
12-
"lumapps-sdk-js": "^0.0.30",
12+
"lumapps-sdk-js": "^0.0.39",
1313
"moment": "^2.29.1",
1414
"moment-range": "^4.0.2",
1515
"react": "^16.13.1",
@@ -36,7 +36,7 @@
3636
]
3737
},
3838
"devDependencies": {
39-
"@lumapps-extensions-playground/devenv": "^1.0.0",
39+
"@lumapps-extensions-playground/devenv": "^1.0.3",
4040
"@lumapps-extensions-playground/playground-server": "^1.0.0",
4141
"@testing-library/jest-dom": "^4.2.4",
4242
"@testing-library/react": "^9.3.2",
@@ -59,6 +59,7 @@
5959
"npm-run-all": "^4.1.5",
6060
"prettier": "2.2.0",
6161
"prettier-stylelint": "^0.4.2",
62+
"react-redux": "^7.2.3",
6263
"react-scripts": "3.4.3",
6364
"stylelint": "^9.10.1",
6465
"stylelint-config-idiomatic-order": "^6.2.0",

template-react-ts/src/index.tsx

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Playground } from '@lumapps-extensions-playground/devenv';
1+
import { Playground, store } from '@lumapps-extensions-playground/devenv';
22

33
import '@lumapps-extensions-playground/devenv/devenv.esm.css';
44

@@ -7,17 +7,20 @@ import '@lumx/core/lumx.css';
77

88
import React from 'react';
99
import ReactDOM from 'react-dom';
10+
import { Provider } from 'react-redux';
1011
import config from './config.js';
1112
import { Widget, WidgetGlobalSettings, WidgetSettings } from './widget';
1213

1314
ReactDOM.render(
1415
<React.StrictMode>
15-
<Playground
16-
config={config}
17-
Widget={Widget}
18-
WidgetSettings={WidgetSettings}
19-
WidgetGlobalSettings={WidgetGlobalSettings}
20-
/>
16+
<Provider store={store}>
17+
<Playground
18+
config={config}
19+
Widget={Widget}
20+
WidgetSettings={WidgetSettings}
21+
WidgetGlobalSettings={WidgetGlobalSettings}
22+
/>
23+
</Provider>
2124
</React.StrictMode>,
2225
document.getElementById('root'),
2326
);

0 commit comments

Comments
 (0)