Skip to content

Commit 71535f4

Browse files
committed
updated vite.config
1 parent afadadd commit 71535f4

17 files changed

+913
-210
lines changed

package-lock.json

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

package.json

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,33 @@
1313
"scripts": {
1414
"build": "vite build",
1515
"start": "vite",
16-
"format": "prettier src -w",
17-
"prepare": "npm run build"
16+
"format": "prettier src -w"
1817
},
19-
"peerDependency": {
18+
"peerDependencies": {
19+
"react": "^17.0.0",
20+
"react-dom": "^17.0.0",
2021
"react-intl": "^5.8.1"
2122
},
2223
"devDependencies": {
24+
"@emotion/babel-plugin": "^11.11.0",
2325
"@vitejs/plugin-react": "^4.0.0",
24-
"vite": "^4.0.0",
2526
"eslint": "^7.32.0 || ^8.2.0",
2627
"eslint-config-airbnb": "^19.0.4",
2728
"eslint-plugin-import": "^2.25.3",
2829
"eslint-plugin-jsx-a11y": "^6.5.1",
2930
"eslint-plugin-react": "^7.28.0",
30-
"eslint-plugin-react-hooks": "^4.3.0"
31+
"eslint-plugin-react-hooks": "^4.3.0",
32+
"vite": "^4.0.0"
3133
},
3234
"files": [
3335
"dist"
3436
],
3537
"dependencies": {
36-
"@mui/material": "^5.15.14",
37-
"@mui/icons-material": "^5.14.17"
38+
"@emotion/cache": "^11.14.0",
39+
"@emotion/react": "^11.14.0",
40+
"@emotion/styled": "^11.14.1",
41+
"@mui/icons-material": "^5.18.0",
42+
"@mui/material": "^5.18.0",
43+
"@mui/system": "^5.18.0"
3844
}
3945
}

src/components/TaskAllFilter.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import { injectIntl } from 'react-intl';
33
import { Grid } from '@mui/material';
4-
import { withTheme, withStyles } from '@mui/material/styles';
4+
import { withTheme, withStyles } from '@mui/styles';
55
import _debounce from 'lodash/debounce';
66
import {
77
TextInput, PublishedComponent, formatMessage, decodeId, toISODateTime,

src/components/TaskFilter.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import { injectIntl } from 'react-intl';
33
import { Grid } from '@mui/material';
4-
import { withTheme, withStyles } from '@mui/material/styles';
4+
import { withTheme, withStyles } from '@mui/styles';
55
import _debounce from 'lodash/debounce';
66
import {
77
TextInput, PublishedComponent, formatMessage, decodeId, toISODateTime,

src/components/TaskHeadPanel.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
formatMessage,
1010
} from '@openimis/fe-core';
1111
import { injectIntl } from 'react-intl';
12-
import { withTheme, withStyles } from '@mui/material/styles';
12+
import { withTheme, withStyles } from '@mui/styles';
1313
import TaskStatusPicker from '../pickers/TaskStatusPicker';
1414
import TaskGroupPicker from '../pickers/TaskGroupPicker';
1515
import { TASK_STATUS, TASK_UPDATE } from '../constants';

src/components/TaskHistoryFilter.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import { injectIntl } from 'react-intl';
33
import { Grid } from '@mui/material';
4-
import { withTheme, withStyles } from '@mui/material/styles';
4+
import { withTheme, withStyles } from '@mui/styles';
55
import _debounce from 'lodash/debounce';
66
import {
77
TextInput, PublishedComponent, formatMessage, decodeId, toISODateTime,

src/components/TaskPreviewPanel.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { useState, useEffect } from 'react';
2-
import { makeStyles } from '@mui/material/styles';
2+
import { makeStyles } from '@mui/styles';
33
import { Paper, Typography } from '@mui/material';
44
import { useModulesManager } from '@openimis/fe-core';
55
import { EMPTY_STRING, TASK_CONTRIBUTION_KEY } from '../constants';

src/components/TaskPreviewTable.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import React from 'react';
33

44
import { injectIntl } from 'react-intl';
5-
import { withStyles, withTheme } from '@mui/material/styles';
5+
import { withStyles, withTheme } from '@mui/styles';
66
import {
77
Table, TableBody, TableCell, TableContainer, TableHead, TableRow,
88
} from '@mui/material';

src/components/groups-management/TaskGroupHeadPanel.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
FormattedMessage,
88
} from '@openimis/fe-core';
99
import { injectIntl } from 'react-intl';
10-
import { withTheme, withStyles } from '@mui/material/styles';
10+
import { withTheme, withStyles } from '@mui/styles';
1111
import TaskExecutorsPicker from '../../pickers/TaskExecutorsPicker';
1212
import GroupPolicyPicker from '../../pickers/GroupPolicyPicker';
1313
import TaskSourcePicker from '../../pickers/TaskSourcePicker';

src/components/groups-management/TaskGroupsFilter.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
22
import { Grid } from '@mui/material';
3-
import { makeStyles } from '@mui/material/styles';
3+
import { makeStyles } from '@mui/styles';
44
import _debounce from 'lodash/debounce';
55
import { TextInput } from '@openimis/fe-core';
66
import {

0 commit comments

Comments
 (0)