Skip to content

Commit 68c1ad7

Browse files
authored
Merge pull request #31 from ModusCreateOrg/floating-components-4
Floating Components - refine menu setShow
2 parents 293c6f2 + 440abcf commit 68c1ad7

File tree

1 file changed

+1
-3
lines changed
  • 21-floating-components/a-ad-hoc-menus/src

1 file changed

+1
-3
lines changed

21-floating-components/a-ad-hoc-menus/src/Menu.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ class Menu extends Component {
55
state = {}
66

77
showMenu = (show) => {
8-
this.setState({
9-
show: show === true
10-
});
8+
this.setState({ show });
119
}
1210

1311
componentWillReceiveProps ({ show }) {

0 commit comments

Comments
 (0)