Skip to content

Commit

Permalink
Refactor ...props to ...rest (#6421)
Browse files Browse the repository at this point in the history
  • Loading branch information
alireza-mh authored and timdorr committed Oct 24, 2018
1 parent 9179af2 commit 65d067f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/react-router/modules/StaticRouter.js
Expand Up @@ -77,7 +77,7 @@ class StaticRouter extends React.Component {
handleBlock = () => noop;

render() {
const { basename, context, location, ...props } = this.props;
const { basename, context, location, ...rest } = this.props;

const history = {
createHref: this.createHref,
Expand All @@ -94,7 +94,7 @@ class StaticRouter extends React.Component {

return (
<Router
{...props}
{...rest}
history={history}
staticContext={this.props.context || {}}
/>
Expand Down
4 changes: 2 additions & 2 deletions website/modules/components/FakeBrowser.js
Expand Up @@ -70,7 +70,7 @@ class FakeBrowser extends React.Component {

render() {
const { url } = this.state;
const { children, ...props } = this.props;
const { children, ...rest } = this.props;

return (
<MemoryRouter getUserConfirmation={getUserConfirmation}>
Expand All @@ -81,7 +81,7 @@ class FakeBrowser extends React.Component {
background="white"
boxShadow="0px 5px 20px hsla(0, 0%, 0%, 0.75)"
borderRadius="6px"
{...props}
{...rest}
>
<Row
background="#eee"
Expand Down

0 comments on commit 65d067f

Please sign in to comment.