Skip to content

Commit de86ec8

Browse files
Merge pull request mui#5310 from oliviertassinari/lodash
[npm] Remove the lodash dev dependency
2 parents a21c040 + 4de3136 commit de86ec8

8 files changed

Lines changed: 14 additions & 14 deletions

File tree

docs/src/app/components/pages/components/RefreshIndicator/ExampleLoading.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const RefreshIndicatorExampleLoading = () => (
2424
size={50}
2525
left={70}
2626
top={0}
27-
loadingColor={"#FF9800"}
27+
loadingColor="#FF9800"
2828
status="loading"
2929
style={style.refresh}
3030
/>

docs/src/app/components/pages/components/RefreshIndicator/ExampleReady.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const RefreshIndicatorExampleSimple = () => (
3434
size={60}
3535
left={120}
3636
top={0}
37-
color={"red"}
37+
color="red"
3838
status="ready"
3939
style={style.refresh}
4040
/>
@@ -43,7 +43,7 @@ const RefreshIndicatorExampleSimple = () => (
4343
size={70}
4444
left={175}
4545
top={0}
46-
color={"red"} // Overridden by percentage={100}
46+
color="red" // Overridden by percentage={100}
4747
status="ready"
4848
style={style.refresh}
4949
/>

docs/src/app/components/pages/discover-more/related-projects.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ A Formsy compatibility wrapper for Material-UI form components.
77
- [react-materialui-notifications](https://github.com/puranjayjain/react-materialui-notifications) Spec compliant notifications for react and material ui users.
88
- [material-ui-chip-input](https://github.com/TeamWertarbyte/material-ui-chip-input) An input field for chips as seen in the [Material design guidelines](https://material.google.com/components/chips.html#chips-behavior).
99
- [material-auto-rotating-carousel](https://github.com/TeamWertarbyte/material-auto-rotating-carousel) A responsive [auto-rotating carousel](https://material.google.com/growth-communications/onboarding.html#onboarding-top-user-benefits) to display your app's benefits.
10-
- [material-ui-rails](https://github.com/towonzhou/material-ui-rails)
11-
Material-UI for Rails.
10+
- [material-ui-rails](https://github.com/towonzhou/material-ui-rails) Material-UI for Rails.
11+
- [storybook-addon-material-ui](https://github.com/sm-react/storybook-addon-material-ui)
12+
Addon for storybook.
1213

1314
### Complementary Projects
1415

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@
9393
"karma-phantomjs-launcher": "^1.0.1",
9494
"karma-sourcemap-loader": "^0.3.7",
9595
"karma-webpack": "^1.7.0",
96-
"lodash": "^4.13.1",
9796
"minimist": "^1.2.0",
9897
"mocha": "^3.0.2",
9998
"nodemon": "^1.9.1",

src/List/ListItem.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ class ListItem extends Component {
649649
simpleLabel ? this.createLabelElement(styles, contentChildren, other) :
650650
disabled ? this.createDisabledElement(styles, contentChildren, other) : (
651651
<EnhancedButton
652-
containerElement={'span'}
652+
containerElement="span"
653653
{...other}
654654
disabled={disabled}
655655
disableKeyboardFocus={disableKeyboardFocus || this.state.rightIconButtonKeyboardFocused}

src/List/makeSelectable.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import React, {Component, PropTypes} from 'react';
1+
import React, {Component, Children, PropTypes} from 'react';
22
import {fade} from '../utils/colorManipulator';
33

4-
export const makeSelectable = (Component) => {
4+
export const makeSelectable = (MyComponent) => {
55
return class extends Component {
66
static propTypes = {
77
children: PropTypes.node,
@@ -85,11 +85,11 @@ export const makeSelectable = (Component) => {
8585
}
8686

8787
return (
88-
<Component {...other} {...this.state}>
89-
{React.Children.map(children, (child) => (
88+
<MyComponent {...other} {...this.state}>
89+
{Children.map(children, (child) => (
9090
this.extendChild(child, styles, selectedItemStyle))
9191
)}
92-
</Component>
92+
</MyComponent>
9393
);
9494
}
9595
};

src/Popover/PopoverAnimationVertical.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class PopoverAnimationVertical extends Component {
7373
zDepth={zDepth}
7474
className={className}
7575
>
76-
{this.props.children}
76+
{this.props.children}
7777
</Paper>
7878
);
7979
}

src/Tabs/Tabs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ class Tabs extends Component {
233233
{tabs}
234234
</div>
235235
<div style={{width: inkBarContainerWidth}}>
236-
{inkBar}
236+
{inkBar}
237237
</div>
238238
<div
239239
style={prepareStyles(Object.assign({}, contentContainerStyle))}

0 commit comments

Comments
 (0)