Skip to content

Commit 376378e

Browse files
committed
chore: bump versions and update kendo-react-final-form-app
1 parent b964ec2 commit 376378e

File tree

4 files changed

+39
-21
lines changed

4 files changed

+39
-21
lines changed

examples/kendo-react-final-form/package.json

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,30 @@
33
"version": "0.1.0",
44
"private": true,
55
"dependencies": {
6-
"@progress/kendo-react-dateinputs": "^2.0.0",
7-
"@progress/kendo-react-dropdowns": "^2.0.0",
8-
"@progress/kendo-react-inputs": "^2.0.0",
9-
"@progress/kendo-react-intl": "^2.0.0",
10-
"@progress/kendo-react-buttons": "^2.0.0",
11-
"@progress/kendo-theme-default": "^2.50.0",
12-
"prop-types": "^15.6.1",
6+
"@progress/kendo-licensing": "^1.5.1",
7+
"@progress/kendo-date-math": "^1.5.14",
8+
"@progress/kendo-inputs-common": "^3.1.1",
9+
"@progress/kendo-intl": "^3.1.2",
10+
"@progress/kendo-drawing": "^1.21.2",
11+
"@progress/kendo-dateinputs-common": "^0.4.5",
12+
"@progress/kendo-react-dateinputs": "^11.0.0",
13+
"@progress/kendo-react-dropdowns": "^11.0.0",
14+
"@progress/kendo-react-inputs": "^11.0.0",
15+
"@progress/kendo-react-intl": "^11.0.0",
16+
"@progress/kendo-react-buttons": "^11.0.0",
17+
"@progress/kendo-react-common": "^11.0.0",
18+
"@progress/kendo-react-layout": "^11.0.0",
19+
"@progress/kendo-react-labels": "^11.0.0",
20+
"@progress/kendo-react-popup": "^11.0.0",
21+
"@progress/kendo-react-treeview": "^11.0.0",
22+
"@progress/kendo-react-dialogs": "^11.0.0",
23+
"@progress/kendo-theme-default": "^11.0.2",
24+
"prop-types": "^15.6.2",
1325
"final-form": "^4.4.0",
14-
"react": "^16.3.1",
15-
"react-dom": "^16.3.1",
16-
"react-final-form": "^3.1.5",
17-
"react-scripts": "1.1.4"
26+
"react": "^18",
27+
"react-dom": "^18",
28+
"react-final-form": "^6.5.9",
29+
"react-scripts": "^5.0.1"
1830
},
1931
"scripts": {
2032
"start": "react-scripts start",
Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1-
import React from 'react';
2-
import ReactDOM from 'react-dom';
3-
import App from './App';
4-
51
it('renders without crashing', () => {
62
const div = document.createElement('div');
7-
ReactDOM.render(<App />, div);
8-
ReactDOM.unmountComponentAtNode(div);
3+
const root = createRoot(div);
4+
root.render(<App />);
5+
root.unmount();
96
});

examples/kendo-react-final-form/src/FinalForm.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ class FinalForm extends Component {
8888
render() {
8989
return (
9090
<div className="row">
91-
<div className="col-lg-4 col-md-6 col-sm-6 col-xs-12 container mt-3 border border-light active shadow">
91+
<div className="col-lg-4 col-md-6 col-sm-6 col-xs-12 container mt-3 border border-light active shadow"
92+
style={{ height: '470px' }}>
9293
<div className="header mt-3">
9394
<h5>Flight Search</h5>
9495
</div>
@@ -126,7 +127,7 @@ class FinalForm extends Component {
126127
offLabel={"NO"}
127128
label="Only direct flights" />
128129
<div className="buttons float-right">
129-
<Button type="submit" primary={true} disabled={submitting || !valid}>
130+
<Button type="submit" themeColor={'primary'} disabled={submitting || !valid}>
130131
Search flights
131132
</Button>
132133
&nbsp;
Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
import React from 'react';
2-
import ReactDOM from 'react-dom';
2+
import { createRoot } from 'react-dom/client';
33
import './index.css';
44
import App from './App';
55
import registerServiceWorker from './registerServiceWorker';
66

7-
ReactDOM.render(<App />, document.getElementById('root'));
7+
const container = document.getElementById('root');
8+
const root = createRoot(container);
9+
10+
root.render(
11+
<React.StrictMode>
12+
<App />
13+
</React.StrictMode>
14+
);
15+
816
registerServiceWorker();

0 commit comments

Comments
 (0)