How to use the @material-ui/core/styles/withStyles function in @material-ui/core

To help you get started, we’ve selected a few @material-ui/core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github redgeoff / mson-react / src / fields / display-value-typography.js View on Github external
});

class DisplayValueTypography extends React.PureComponent {
  render() {
    const { children, classes } = this.props;

    // We use a span tag so that the element is inline
    return (
      
        {children}
      
    );
  }
}

export default withStyles(styles)(DisplayValueTypography);
github choonchernlim / front-end-stack / src / js / components / layout / LayoutConnected.js View on Github external
const mapStateToProps = state => ({
  shouldMenuLeftOpened: states.layout.shouldMenuLeftOpened(state),
});

const mapDispatchToProps = {
  onMenuLeftOpened: actions.menuLeftOpened,
  onToggleMenu: actions.toggleMenu,
};

const LayoutConnected = connect(
  mapStateToProps,
  mapDispatchToProps,
)(Layout);

export default withRouter(withStyles(styles.layout)(LayoutConnected));
github TeamWertarbyte / material-auto-rotating-carousel / src / AutoRotatingCarousel.js View on Github external
mobile: PropTypes.bool,
  /** Properties applied to the [Modal](https://material-ui.com/api/modal/) element. */
  ModalProps: PropTypes.object,
  /** Fired when the index changed. Returns current index. */
  onChange: PropTypes.func,
  /** Fired when the gray background of the popup is pressed when it is open. */
  onClose: PropTypes.func,
  /** Fired when the user clicks the getting started button. */
  onStart: PropTypes.func,
  /** Controls whether the AutoRotatingCarousel is opened or not. */
  open: PropTypes.bool,
  /** If `true`, the left and right arrows are hidden in the desktop version. */
  hideArrows: PropTypes.bool
}

export default withStyles(styles)(AutoRotatingCarousel)
github WaftTech / WaftEngine / client / app / containers / Profile / Components / ChangePassword.js View on Github external
);
  }
}

const mapStateToProps = createStructuredSelector({
  errors: makeSelectErrors(),
});

const withConnect = connect(
  mapStateToProps,
  { ...mapDispatchToProps, push },
);

const withStyle = withStyles(styles);

export default compose(
  withStyle,
  withConnect,
)(ChangePassword);
github keyboardio / Chrysalis / src / renderer / screens / KeyboardSelect.js View on Github external
{scanDevicesButton}
            <div>
            {connectionButton}
          
        
      </div>
    );
  }
}

KeyboardSelect.propTypes = {
  classes: PropTypes.object.isRequired
};

export default withSnackbar(withStyles(styles)(KeyboardSelect));
github hackoregon / openelections / app / src / Pages / AddUser / AddUser.js View on Github external
onClick={() =&gt; {
                    this.formIsSubmitted(false);
                    this.clearState();
                  }}
                &gt;
                  close
                
              
            )}
          
        
      
    );
  }
}
export default withStyles(styles)(AddUser);
github baoduy / React-MaterialUI-Starter-Kit / src / layouts / App.jsx View on Github external
<menuitem>My account</menuitem>
                
              
            )}
          
        
      
    );
  }
}

App.propTypes = {
  classes: PropTypes.object.isRequired
};

export default withStyles(appStyle)(App);
github app-generator / material-kit-react / src / views / LandingPage / LandingPage.jsx View on Github external
<div>
          <div>
            
            
            
          </div>
        </div>
        <footer>
      
    );
  }
}

export default withStyles(landingPageStyle)(LandingPage);
</footer>