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 GraphnomiQl / GraphnomiQL / src / containers / modalContainer.jsx View on Github external
placeholder="Insert Introspection Result Here"
                  onChange={handleUpload}
                />
                <button> { changeSchema(currentSchema, uploadedText); handleClose(); handleSelectedSchema(); clearGraph(); renderNode(); }}&gt;
                  Visualize Schema
                </button>
              
            
          
        
      
    );
  }
}
// material ui - wrapping modal container with the material ui styling
const SimpleModalWrapped = withStyles(styles)(ModalContainer);

export default connect(mapStateToProps, mapDispatchToProps)(SimpleModalWrapped);
github foxfolio / foxfolio-desktop / app / pages / portfolio / components / PortfolioPosition.tsx View on Github external
},
    right: {
      textAlign: 'right',
    },
  });

// TODO Use connect to get coinlist, ticker and settings
interface Props extends WithStyles {
  asset: string;
  coinlist: Coinlist;
  ticker: Ticker;
  portfolio: PortfolioForAsset;
  settings: SettingsType;
}

export const PortfolioPosition = withStyles(styles)(
  ({ asset, classes, portfolio, coinlist, ticker, settings }: Props) =&gt; {
    const quantity = portfolio.total;
    const tickerEntries = getTickerEntries(ticker, asset, [
      settings.cryptoCurrency,
      settings.fiatCurrency,
    ]);

    return (
github LessWrong2 / Lesswrong2 / packages / lesswrong / components / posts / BookmarkButton.jsx View on Github external
{title}
      
    )
  } else {
    return (
      
        <span>
        { icon }
        </span>
      
    )
  }
}

registerComponent('BookmarkButton', BookmarkButton, withUser, withErrorBoundary, withStyles(styles, {name:"BookmarkButton"}), withDialog);
github OpenCTI-Platform / opencti / opencti-platform / opencti-front / src / private / components / techniques / attack_patterns / AddCoursesOfActionLines.js View on Github external
},
    getVariables(props, { count, cursor }, fragmentVariables) {
      return {
        count,
        cursor,
        orderBy: fragmentVariables.orderBy,
        orderMode: fragmentVariables.orderMode,
      };
    },
    query: addCoursesOfActionLinesQuery,
  },
);

export default compose(
  inject18n,
  withStyles(styles),
)(AddCoursesOfActionLines);
github wso2 / carbon-apimgt / features / apimgt / org.wso2.carbon.apimgt.publisher.feature / src / main / resources / publisher / source / src / app / components / Apis / Details / EnvironmentOverview / EnvironmentPanel.jsx View on Github external
}
}

EnvironmentPanel.defaultProps = {};

EnvironmentPanel.propTypes = {
    environment: PropTypes.shape({
        label: PropTypes.string,
    }).isRequired,
    rootAPI: PropTypes.shape({
        name: PropTypes.string,
    }).isRequired,
    classes: PropTypes.shape({}).isRequired,
};

export default withStyles(styles)(EnvironmentPanel);
github mikeyhogarth / cocktails / src / components / CocktailItem.js View on Github external
};

const mapStateToProps = (state, ownProps) => ({
  favourite: isFavouriteSelector(state, ownProps),
  favourites: state.favourites,
  allGlasses: allGlassesSelector(state)
});

const mapDispatchToProps = dispatch => ({
  updateFavourites: bindActionCreators(updateFavourites, dispatch)
});

export default connect(
  mapStateToProps,
  mapDispatchToProps
)(withStyles(styles)(CocktailItem));
github scorelab / senz / senz-web / frontend / src / components / project / DashBoard / SentReceived.js View on Github external
<b>Send and Receive Requests</b>
          
          <br>
          <div>
            
          </div>
        
      
    );
  }
}
const styledComponent = withStyles(styles)(SentReceived);
const MapStateToProp = state =&gt; {
  return {
    projectLog: state.log.projectLogArr,
    user: state.auth.user,
    project: state.project.SelectedProject
  };
};

export default connect(
  MapStateToProp,
  { fetchProjectBasedLog }
)(styledComponent);
github wso2 / carbon-apimgt / features / apimgt / org.wso2.carbon.apimgt.publisher.feature / src / main / resources / publisher-new / source / src / app / components / Apis / Details / Endpoints / EndpointDetail.jsx View on Github external
showEpConfigSlide={this.state.showEpConfigSlide}
                                    /&gt;
                                
                            )}
                        
                    
                
            
        );
    }
}
EndpointDetail.propTypes = {
    classes: PropTypes.object.isRequired,
};

export default withStyles(styles)(EndpointDetail);
github samuraikun / firebase-youtube-clone / src / components / VideoFeed.js View on Github external
spacing={40}
        direction="row"
        justify="flex-start"
        alignItems="center"
      &gt;
        {this.renderVideoPlayers(this.state.videos)}
      
    );
  }
}

VideoFeed.propTypes = {
  classes: PropTypes.object.isRequired,
};

export default withStyles(styles)(VideoFeed);
github CodeForCary / cary-connects-web / src / templates / DefaultTemplate / index.js View on Github external
<map>
                    {this.props.children}
                  </map>
                
              
              
            
          )}
        
      
    );
  }
}

export default withStyles(styles)(DefaultTemplate)