Skip to content

Commit a30c9d5

Browse files
authored
Bump components and build (#173)
* Bump components, and build, update dev.tsx files
1 parent 76bf551 commit a30c9d5

File tree

7 files changed

+3407
-2820
lines changed

7 files changed

+3407
-2820
lines changed

reactExamples/package-lock.json

Lines changed: 3396 additions & 2753 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

reactExamples/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
"test": "cross-env NODE_ENV=test jest"
1313
},
1414
"dependencies": {
15-
"@labkey/components": "2.344.0"
15+
"@labkey/components": "3.1.1"
1616
},
1717
"devDependencies": {
18-
"@labkey/build": "6.12.0",
18+
"@labkey/build": "7.0.0",
1919
"@types/jest": "29.2.0",
2020
"@types/react": "16.14.34",
2121
"jest": "29.2.2",
Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,10 @@
11
import React from 'react';
22
import ReactDOM from 'react-dom';
3-
import { AppContainer } from 'react-hot-loader';
43

54
import { App } from './FileAttachmentForm';
65

76
const render = () => {
8-
ReactDOM.render(
9-
<AppContainer>
10-
<App />
11-
</AppContainer>,
12-
document.getElementById('app')
13-
)
7+
ReactDOM.render(<App />, document.getElementById('app'));
148
};
159

16-
declare const module: any;
17-
18-
if (module.hot) {
19-
module.hot.accept();
20-
}
21-
22-
render();
10+
render();
Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,11 @@
11
import React from 'react';
22
import ReactDOM from 'react-dom';
3-
import { AppContainer } from 'react-hot-loader';
43

54
import { App } from './HelloWorld';
65
import './helloWorld.scss';
76

87
const render = () => {
9-
ReactDOM.render(
10-
<AppContainer>
11-
<App />
12-
</AppContainer>,
13-
document.getElementById('app')
14-
)
8+
ReactDOM.render(<App />, document.getElementById('app'));
159
};
1610

17-
declare const module: any;
18-
19-
if (module.hot) {
20-
module.hot.accept();
21-
}
22-
23-
render();
11+
render();
Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,11 @@
11
import React from 'react';
22
import ReactDOM from 'react-dom';
3-
import { AppContainer } from 'react-hot-loader';
43

54
import { App } from './QueryModelExample';
65
import './queryModelExample.scss';
76

87
const render = () => {
9-
ReactDOM.render(
10-
<AppContainer>
11-
<App />
12-
</AppContainer>,
13-
document.getElementById('app')
14-
)
8+
ReactDOM.render(<App />, document.getElementById('app'));
159
};
1610

17-
declare const module: any;
18-
19-
if (module.hot) {
20-
module.hot.accept();
21-
}
22-
23-
render();
11+
render();
Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,10 @@
11
import React from 'react';
22
import ReactDOM from 'react-dom';
3-
import { AppContainer } from 'react-hot-loader';
43

54
import { ToDoListPage } from './ToDoListPage';
65

76
const render = () => {
8-
ReactDOM.render(
9-
<AppContainer>
10-
<ToDoListPage />
11-
</AppContainer>,
12-
document.getElementById('app')
13-
)
7+
ReactDOM.render(<ToDoListPage />, document.getElementById('app'))
148
};
159

16-
declare const module: any;
17-
18-
if (module.hot) {
19-
module.hot.accept();
20-
}
21-
22-
render();
10+
render();
Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,9 @@
11
import React from 'react';
22
import ReactDOM from 'react-dom';
3-
import { AppContainer } from 'react-hot-loader';
43
import { App } from '@labkey/api';
54

65
import { ToDoListPage } from "../ToDoListPage";
76

87
App.registerApp<any>('demoWebpart', (target: string) => {
9-
ReactDOM.render(
10-
<AppContainer>
11-
<ToDoListPage />
12-
</AppContainer>,
13-
document.getElementById(target)
14-
);
8+
ReactDOM.render(<ToDoListPage />, document.getElementById(target));
159
}, true /* hot */);
16-
17-
declare const module: any;

0 commit comments

Comments
 (0)