Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrookes committed Jan 14, 2019
1 parent 9f7ef37 commit 1a1e414
Showing 1 changed file with 21 additions and 17 deletions.
38 changes: 21 additions & 17 deletions packages/material-ui-lab/src/Breadcrumbs/Breadcrumbs.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,23 +67,27 @@ class Breadcrumbs extends React.Component {
insertSeparators(items) {
const { classes, separatorText, separator } = this.props;

return items.reduce((arr, v, i, source) => i < source.length - 1
? arr.concat(
v,
this.getSeparator(
separator
? {
key: `separator-${i}`,
className: classes.separator,
}
: {
key: `separator-${i}`,
className: classes.separator,
separatorText,
},
),
)
: arr.concat(v), []);
return items.reduce(
(arr, v, i, source) =>
i < source.length - 1
? arr.concat(
v,
this.getSeparator(
separator
? {
key: `separator-${i}`,
className: classes.separator,
}
: {
key: `separator-${i}`,
className: classes.separator,
separatorText,
},
),
)
: arr.concat(v),
[],
);
}

renderItemsBeforeAndAfter() {
Expand Down

0 comments on commit 1a1e414

Please sign in to comment.