We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c63934c commit b3a51d5Copy full SHA for b3a51d5
components/User/SessionBox.tsx
@@ -37,13 +37,9 @@ export class SessionBox extends Component<SessionBoxProps> {
37
this.modalShown = !this.props.jwtPayload;
38
}
39
40
- toggleDrawer = () => {
41
- this.drawerOpen = !this.drawerOpen;
42
- };
+ toggleDrawer = () => (this.drawerOpen = !this.drawerOpen);
43
44
- closeDrawer = () => {
45
- this.drawerOpen = false;
46
+ closeDrawer = () => (this.drawerOpen = false);
47
48
renderMenuItems() {
49
const { path, menu = [] } = this.props;
0 commit comments