Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SpeedDial] Inline the Add icon #12128

Merged
merged 1 commit into from
Jul 13, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;