Skip to content

Commit 8759525

Browse files
mbrookesoliviertassinari
authored andcommitted
[SpeedDial] Inline the Add icon (#12128)
1 parent ce13979 commit 8759525

File tree

4 files changed

+24
-2
lines changed

4 files changed

+24
-2
lines changed

packages/material-ui-lab/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
"release": "yarn build && npm publish build"
3434
},
3535
"peerDependencies": {
36-
"@material-ui/icons": "^1.0.0",
3736
"@material-ui/core": "^1.0.0",
3837
"react": "^16.3.0",
3938
"react-dom": "^16.3.0"

packages/material-ui-lab/src/SpeedDialIcon/SpeedDialIcon.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react';
22
import PropTypes from 'prop-types';
33
import classNames from 'classnames';
44
import { withStyles } from '@material-ui/core/styles';
5-
import AddIcon from '@material-ui/icons/Add';
5+
import AddIcon from '../internal/svg-icons/Add';
66

77
const styles = theme => ({
88
root: {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
rules: {
3+
'import/no-mutable-exports': 'off',
4+
'max-len': 'off',
5+
},
6+
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import React from 'react';
2+
import pure from 'recompose/pure';
3+
import SvgIcon from '@material-ui/core/SvgIcon';
4+
5+
/**
6+
* @ignore - internal component.
7+
*/
8+
let Add = props => (
9+
<SvgIcon {...props}>
10+
<path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z" />
11+
</SvgIcon>
12+
);
13+
14+
Add = pure(Add);
15+
Add.muiName = 'SvgIcon';
16+
17+
export default Add;

0 commit comments

Comments
 (0)