Advertisement
Guest User

Untitled

a guest
Jul 24th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. checkFullScreen () {
  2. let state = this.state
  3. if (this.mobilecheck() === true) {
  4. styles({dialogPaper: 'block'})
  5. this.setState(state)
  6. }
  7. }
  8.  
  9. const styles = theme => ({
  10. dialogPaper: {
  11. height: '90%'
  12. },
  13. })
  14.  
  15. Function
  16.  
  17. checkFullScreen () {
  18. let state = this.state
  19. if (this.mobilecheck() === true) {
  20. styles({dialogPaper: 'block'})
  21. this.setState(state)
  22. }
  23. }
  24.  
  25. Return (where the css is being set)
  26.  
  27. return (
  28.  
  29. <Dialog
  30. open={this.props.open}
  31. className={classes.dialog}
  32. classes={{paper: classes.dialogPaper}}
  33. >
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement