Skip to content

Commit ec81564

Browse files
committed
fixed problem with clone element
1 parent 235919c commit ec81564

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/NavBar/NavBar.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class NavBar extends React.PureComponent {
1818
const { children, navbarPostion, classes, ...other } = this.props;
1919
return (
2020
<AppBar position={navbarPostion} color="default">
21-
{React.cloneElement(children, ...other)}
21+
{React.cloneElement(children, { ...other })}
2222
</AppBar>
2323
);
2424
}

0 commit comments

Comments
 (0)