Commit bc68da13 authored by Matija Obreza's avatar Matija Obreza
Browse files

onRequestClose is replaced by onClose in material-ui@beta.24

parent 0de17768
Pipeline #3535 passed with stages
in 4 minutes and 11 seconds
......@@ -60,7 +60,7 @@ class UserMenuComponent extends React.Component<IUserMenuComponentProps, any> {
id="user-menu"
anchorEl={ this.state.anchorEl }
open={ this.state.open }
onRequestClose={ this.handleRequestClose }
onClose={ this.handleRequestClose }
>
<MenuItem onClick={ this.goToAdministratorDashboard } >Administrator Dashboard</MenuItem>
<MenuItem onClick={ logoutRequest } >Logout</MenuItem>
......
......@@ -39,7 +39,7 @@ class LeftMenu extends React.Component<ILeftMenuProps, any> {
<Drawer
type="temporary"
open={ this.props.open }
onRequestClose={ this.props.closeMenu }
onClose={ this.props.closeMenu }
onClick={ this.props.closeMenu }
>
<div className={ this.props.classes.leftMenu }>
......
......@@ -165,7 +165,7 @@ class UploadSection extends React.Component<IUploadSectionProps, any> {
<Snackbar
anchorOrigin={ { vertical: 'bottom', horizontal: 'center' } }
open={ this.state.open }
onRequestClose={ this.handleRequestClose }
onClose={ this.handleRequestClose }
SnackbarContentProps={ {
'aria-describedby': 'message-id',
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment