-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: [DHIS2-17874] replace remaining Material UI components (#3794)
* feat: remove snackbar * feat: change menu components * feat: remove paper * feat: remove grow * feat: change popover * feat: remove icon button * feat: remove icons * fix: type error for open delay * fix: after review changes * feat: change to icon button * fix: data test prop * fix: increase max width
- Loading branch information
Showing
22 changed files
with
410 additions
and
943 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 10 additions & 16 deletions
26
src/core_modules/capture-core/components/IncompleteSelectionsMessage/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,23 @@ | ||
import React from 'react'; | ||
import Paper from '@material-ui/core/Paper/Paper'; | ||
import { withStyles } from '@material-ui/core'; | ||
import { colors } from '@dhis2/ui'; | ||
|
||
const StyledPaper = withStyles({ | ||
root: { | ||
display: 'flex', | ||
justifyContent: 'center', | ||
alignItems: 'center', | ||
background: colors.grey200, | ||
color: colors.grey700, | ||
padding: '12px 16px', | ||
}, | ||
})(Paper); | ||
|
||
const containerStyle = { | ||
display: 'flex', | ||
justifyContent: 'center', | ||
width: '100%', | ||
}; | ||
|
||
const messageBoxStyle = { | ||
alignItems: 'center', | ||
background: colors.grey200, | ||
color: colors.grey700, | ||
padding: '12px 16px', | ||
borderRadius: '4px', | ||
}; | ||
|
||
export const IncompleteSelectionsMessage = ({ children, dataTest = 'informative-paper' }) => ( | ||
<div style={containerStyle}> | ||
<StyledPaper data-test={dataTest} elevation={0}> | ||
<div style={messageBoxStyle} data-test={dataTest}> | ||
{children} | ||
</StyledPaper> | ||
</div> | ||
</div> | ||
); |
14 changes: 9 additions & 5 deletions
14
...les/capture-core/components/ListView/Filters/FilterButton/ActiveFilterButton.component.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.