Skip to content

Commit

Permalink
[SpeedDial] Inline the Add icon (mui#12128)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrookes authored and Joe Shelby committed Jul 14, 2018
1 parent f24146e commit 3dd6d22
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 2 deletions.
1 change: 0 additions & 1 deletion packages/material-ui-lab/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
"release": "yarn build && npm publish build"
},
"peerDependencies": {
"@material-ui/icons": "^1.0.0",
"@material-ui/core": "^1.0.0",
"react": "^16.3.0",
"react-dom": "^16.3.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { withStyles } from '@material-ui/core/styles';
import AddIcon from '@material-ui/icons/Add';
import AddIcon from '../internal/svg-icons/Add';

const styles = theme => ({
root: {
Expand Down
6 changes: 6 additions & 0 deletions packages/material-ui-lab/src/internal/svg-icons/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
rules: {
'import/no-mutable-exports': 'off',
'max-len': 'off',
},
};
17 changes: 17 additions & 0 deletions packages/material-ui-lab/src/internal/svg-icons/Add.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '@material-ui/core/SvgIcon';

/**
* @ignore - internal component.
*/
let Add = props => (
<SvgIcon {...props}>
<path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z" />
</SvgIcon>
);

Add = pure(Add);
Add.muiName = 'SvgIcon';

export default Add;

0 comments on commit 3dd6d22

Please sign in to comment.