Skip to content

Commit afadadd

Browse files
committed
migrated from the material-ui to mui
1 parent 5886933 commit afadadd

22 files changed

+688
-59
lines changed

package-lock.json

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

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,8 @@
3232
"files": [
3333
"dist"
3434
],
35-
"dependencies": {}
35+
"dependencies": {
36+
"@mui/material": "^5.15.14",
37+
"@mui/icons-material": "^5.14.17"
38+
}
3639
}

src/components/TaskAllFilter.jsx

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

src/components/TaskAllSearcher.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import {
77
useModulesManager,
88
useTranslations,
99
} from '@openimis/fe-core';
10-
import { IconButton, Tooltip } from '@material-ui/core';
11-
import VisibilityIcon from '@material-ui/icons/Visibility';
10+
import { IconButton, Tooltip } from '@mui/material';
11+
import VisibilityIcon from '@mui/icons-material/Visibility';
1212
import {
1313
RIGHT_TASKS_MANAGEMENT_SEARCH, DEFAULT_PAGE_SIZE, ROWS_PER_PAGE_OPTIONS, TASK_STATUS, TASK_ROUTE,
1414
} from '../constants';

src/components/TaskApprovementPanel.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ import { bindActionCreators } from 'redux';
33
import { connect } from 'react-redux';
44
import {
55
makeStyles, Paper, Fab,
6-
} from '@material-ui/core';
6+
} from '@mui/material';
7+
import ClearIcon from '@mui/icons-material/Clear';
8+
import CheckIcon from '@mui/icons-material/Check';
79
import {
810
useTranslations,
911
useModulesManager, coreConfirm, clearConfirm, journalize,
1012
} from '@openimis/fe-core';
11-
import ClearIcon from '@material-ui/icons/Clear';
12-
import CheckIcon from '@material-ui/icons/Check';
1313
import {
1414
APPROVED, EMPTY_STRING,
1515
FAILED, TASK_STATUS,

src/components/TaskFilter.jsx

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

src/components/TaskHeadPanel.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
2-
import { Grid, Divider, Typography } from '@material-ui/core';
2+
import { Grid, Divider, Typography } from '@mui/material';
33
import {
44
withModulesManager,
55
FormPanel,
@@ -9,7 +9,7 @@ import {
99
formatMessage,
1010
} from '@openimis/fe-core';
1111
import { injectIntl } from 'react-intl';
12-
import { withTheme, withStyles } from '@material-ui/core/styles';
12+
import { withTheme, withStyles } from '@mui/material/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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import { injectIntl } from 'react-intl';
3-
import { Grid } from '@material-ui/core';
4-
import { withTheme, withStyles } from '@material-ui/core/styles';
3+
import { Grid } from '@mui/material';
4+
import { withTheme, withStyles } from '@mui/material/styles';
55
import _debounce from 'lodash/debounce';
66
import {
77
TextInput, PublishedComponent, formatMessage, decodeId, toISODateTime,

src/components/TaskPreviewPanel.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React, { useState, useEffect } from 'react';
2-
import { makeStyles, Paper, Typography } from '@material-ui/core';
2+
import { makeStyles } from '@mui/material/styles';
3+
import { Paper, Typography } from '@mui/material';
34
import { useModulesManager } from '@openimis/fe-core';
45
import { EMPTY_STRING, TASK_CONTRIBUTION_KEY } from '../constants';
56
import TaskPreviewTable from './TaskPreviewTable';

src/components/TaskPreviewTable.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
import React from 'react';
33

44
import { injectIntl } from 'react-intl';
5-
import { withStyles, withTheme } from '@material-ui/core/styles';
5+
import { withStyles, withTheme } from '@mui/material/styles';
66
import {
77
Table, TableBody, TableCell, TableContainer, TableHead, TableRow,
8-
} from '@material-ui/core';
8+
} from '@mui/material';
99
import { ProgressOrError } from '@openimis/fe-core';
1010
import { useSelector } from 'react-redux';
1111
import TaskPreviewCell from './TaskPreviewCell';

0 commit comments

Comments
 (0)