Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Move default props def from theme creation to components
Ideally, defaultProps should be in the `components` key of the theme https://mui.com/material-ui/customization/theme-components/#default-props but we will reserve this key for overrides. And anyway we already change defaultProps directly from components.
- Loading branch information
Showing
5 changed files
with
21 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
import React from 'react' | ||
import AccordionSummary from '@material-ui/core/AccordionSummary' | ||
|
||
import AccordionExpandIcon from '../AccordionExpandIcon' | ||
|
||
AccordionSummary.defaultProps = { | ||
expandIcon: <AccordionExpandIcon /> | ||
} | ||
|
||
export default AccordionSummary |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
import MUITooltip from '@material-ui/core/Tooltip' | ||
|
||
MUITooltip.defaultProps = { | ||
arrow: true | ||
} | ||
|
||
export default MUITooltip |