Skip to content
This repository was archived by the owner on Dec 26, 2022. It is now read-only.

Commit 62cd3f0

Browse files
committed
Update packages
1 parent 4afff0f commit 62cd3f0

File tree

4 files changed

+248
-241
lines changed

4 files changed

+248
-241
lines changed

package.json

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -164,13 +164,14 @@
164164
"@types/history": "4.7.6",
165165
"@types/jest": "^26.0.24",
166166
"@types/node": "14.14.10",
167-
"@types/react": "^16.9.44",
168-
"@types/react-dom": "^16.9.9",
167+
"@types/react": "18.0.14",
168+
"@types/react-dom": "17.0.11",
169169
"@types/react-router-dom": "^5.1.6",
170170
"@types/uuid": "^8.3.3",
171171
"@types/webpack-env": "^1.15.2",
172172
"@typescript-eslint/eslint-plugin": "^4.8.1",
173173
"@typescript-eslint/parser": "^4.8.1",
174+
"@types/universal-analytics": "0.4.5",
174175
"babel-eslint": "^10.1.0",
175176
"babel-jest": "^26.1.0",
176177
"babel-loader": "^8.2.2",
@@ -229,9 +230,9 @@
229230
},
230231
"dependencies": {
231232
"@ant-design/colors": "6.0.0",
232-
"@ant-design/icons": "4.6.2",
233+
"@ant-design/icons": "4.7.0",
233234
"@sentry/electron": "2.5.0",
234-
"antd": "4.17.2",
235+
"antd": "4.21.3",
235236
"caniuse-lite": "1.0.30001214",
236237
"clsx": "^1.1.1",
237238
"date-fns": "2.20.1",
@@ -246,24 +247,21 @@
246247
"mobx": "6.1.8",
247248
"mobx-react": "7.1.0",
248249
"moment": "2.29.1",
249-
"react": "^17.0.1",
250-
"react-dom": "^17.0.1",
250+
"react": "18.2.0",
251+
"react-dom": "18.2.0",
251252
"react-hook-media-query": "^1.0.5",
252253
"react-jss": "^10.6.0",
253254
"react-router-dom": "^5.2.0",
254255
"regenerator-runtime": "^0.13.5",
255256
"source-map-support": "^0.5.19",
256-
"universal-analytics": "^0.4.23",
257+
"universal-analytics": "0.5.3",
257258
"uuid": "^8.3.2"
258259
},
259260
"devEngines": {
260261
"node": ">=14.x",
261262
"npm": ">=6.x",
262263
"yarn": ">=1.21.3"
263264
},
264-
"collective": {
265-
"url": "https://opencollective.com/electron-react-boilerplate-594"
266-
},
267265
"browserslist": [],
268266
"prettier": {
269267
"overrides": [

src/index.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
import React from 'react';
2+
3+
// Due to issue with antd, we need to use old react api
24
import { render } from 'react-dom';
5+
// FIXME: import { createRoot } from 'react-dom/client';
6+
37
import dotenv from 'dotenv';
48

59
import App from './App';
@@ -11,3 +15,4 @@ dotenv.config();
1115
initSentry();
1216

1317
render(<App />, document.getElementById('root'));
18+
// createRoot(document.getElementById('root')).render(<App />);

src/types/Types.d.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,3 @@
1-
declare module 'universal-analytics' {
2-
export interface Visitor {
3-
pageview(path: string): Visitor;
4-
event(category: string, action: string): Visitor;
5-
send(): void;
6-
}
7-
8-
const ua: (code: string, uid?: string) => Visitor;
9-
10-
export default ua;
11-
}
12-
131
declare module 'react-hook-media-query' {
142
const useMediaQuery: (query: string) => boolean;
153

0 commit comments

Comments
 (0)