How to use the @material-ui/core/withWidth.isWidthUp 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 SaltieRL / DistributedReplays / webapp / src / Components / Replay / ReplayTabs.tsx View on Github external
public render() {
        const aboveXl = isWidthUp("xl", this.props.width)
        const url = `https://calculated.gg/replays/${this.props.replay.id}`
        const qrcode = (
            
                
                    
                        
                    

                    
                        {url}
                    

                    
                        
                            Use this with the{" "}
                            <a href="https://play.google.com/store/apps/details?id=gg.calculated.arviewer"></a>
github EventKit / eventkit-cloud / eventkit_cloud / ui / static / ui / app / components / DataPackPage / MapView.tsx View on Github external
collapsed: false,
                }),
                new Zoom({
                    className: css.olZoom,
                }),
                new ZoomToExtent({
                    className: css.olZoomToExtent,
                    label: img,
                    extent: [
                        -180,-90, 180, 90
                    ],
                }),
                new OverviewMap({
                    className: ['ol-overviewmap', css['ol-custom-overviewmap']].join(' '),
                    collapsible: true,
                    collapsed: !isWidthUp('md', this.props.width),
                    tipLabel: '',
                }),
            ],
            interactions: interaction.defaults({
                keyboard: false,
                altShiftDragRotate: false,
                pinchRotate: false,
            }),
            layers: [
                new Tile({
                    source: new XYZ({
                        projection: 'EPSG:4326',
                        tileGrid: tileGrid,
                        url: this.context.config.BASEMAP_URL,
                        wrapX: true,
                        attributions: this.context.config.BASEMAP_COPYRIGHT,
github SaltieRL / DistributedReplays / webapp / src / Components / Shared / Upload / UploadDialogWrapper.tsx View on Github external
public render() {
        const Icon = CloudUpload
        return (
            &lt;&gt;
                {isWidthUp("md", this.props.width) &amp;&amp; (
                    &lt;&gt;
                        {this.props.buttonStyle === "floating" &amp;&amp; (
                            
                        )}
                        {this.props.buttonStyle === "contained" &amp;&amp; (
                            
                        )}
                        {this.props.buttonStyle === "icon" &amp;&amp; (
                            
                                
                                    {this.state.currentUploadsCount === 0 ? (
                                        
                                    ) : (
github SaltieRL / DistributedReplays / webapp / src / Components / Replay / Visualizations / VisualizationTabs.tsx View on Github external
public render() {
        const aboveXl = isWidthUp("xl", this.props.width)
        return (
            
                
                    
                    {this.props.loggedInUser &amp;&amp; this.props.loggedInUser.beta ? (
                        
                    ) : (
                        
                    )}
                    {this.props.loggedInUser &amp;&amp; this.props.loggedInUser.beta ? (
github TakwimuAfrica / Takwimu / takwimu / takwimu_ui / src / components / Navigation / index.js View on Github external
renderNavBar(inDrawer = false) {
    const { classes, width } = this.props;
    return (
      <nav>
        
          
            
              
                <img height="{19}" src="{logoWhite}" alt="logo">
              
            

            {isWidthUp('md', width)
              ? this.renderDesktopNav()
              : this.renderMobileNav()}
          
        
      </nav>
    );
  }
github EventKit / eventkit-cloud / eventkit_cloud / ui / static / ui / app / components / DashboardPage / DataPackFeaturedItem.js View on Github external
render() {
        const { colors } = this.props.theme.eventkit;
        const mdUp = isWidthUp('md', this.props.width);
        const lgUp = isWidthUp('lg', this.props.width);

        const cardHeight = this.props.height || 'auto';
        let cardClamp = 2;
        if (lgUp) cardClamp = 6;
        else if (mdUp) cardClamp = 7;

        const styles = {
            card: {
                backgroundColor: colors.secondary,
                position: 'relative',
                height: cardHeight,
            },
            content: {
                display: 'flex',
                flexWrap: 'nowrap',
                height: cardHeight,
github SaltieRL / DistributedReplays / webapp / src / Components / Player / PlayerOverview.tsx View on Github external
const playerSideBar = 
        const playerPlayStyle = (
            
        )
        const playerMatchHistory = (
            
        )

        return (
            &lt;&gt;
                {isWidthUp("md", this.props.width) ? (
                    &lt;&gt;
                        
                            {playerSideBar}
                        
                        
                            
                                
                                    {playerPlayStyle}