How to use the @material-ui/core.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 drublic / backoffice / src / Dashboard / DashboardBranch.jsx View on Github external
)) : null}
  
)

DashboardBranch.propTypes = {
  data: PropTypes.objectOf(PropTypes.any).isRequired,
  onClick: PropTypes.func.isRequired,
  classes: PropTypes.objectOf(PropTypes.string).isRequired,
}

export default withStyles(styles)(DashboardBranch)
github yanglin5689446 / linbox / src / pages / Done / index.js View on Github external
clusters={clusters}
                actions={{
                  backToInbox: true,
                  trash: true,
                }}
              />
            ))
            : 'Loading...'
        }
      

    
  )
}

export default withStyles(styles)(Done)
github wso2 / carbon-apimgt / features / apimgt / org.wso2.carbon.apimgt.publisher.feature / src / main / resources / publisher-new / source / src / app / components / Apis / Details / EndpointsNew / AdvancedConfig / SuspendTimeoutConfig.jsx View on Github external
}

SuspendTimeoutConfig.propTypes = {
    classes: PropTypes.shape({
        configContainer: PropTypes.shape({}),
        configSubContainer: PropTypes.shape({}),
        subTitle: PropTypes.shape({}),
        formControl: PropTypes.shape({}),

    }).isRequired,
    intl: PropTypes.shape({
        formatMessage: PropTypes.func,
    }).isRequired,
};

export default injectIntl(withStyles(styles, { withTheme: true })(SuspendTimeoutConfig));
github wso2 / carbon-apimgt / features / apimgt / org.wso2.carbon.apimgt.publisher.feature / src / main / resources / publisher-new / source / src / app / components / Apis / Details / Mediation / OutFlow.jsx View on Github external
engagedPolicyFile={engagedPolicyFile}
                            api={api}
                            updateMediationPolicy={updateMediationPolicy}
                        />
                    
                )}
        
    );
}
OutFlow.propTypes = {
    classes: PropTypes.shape({}).isRequired,
    api: PropTypes.shape({}).isRequired,
    updateMediationPolicy: PropTypes.func.isRequired,
};

export default withStyles(styles)(OutFlow);
github wso2 / cellery-security / system / control-plane / global / components / observability / org.wso2.vick.observability.ui / src / components / common / error / UnknownError.js View on Github external
{props.description}
                        
                    )
                    : null
            }
        
    
);

UnknownError.propTypes = {
    classes: PropTypes.object.isRequired,
    title: PropTypes.string,
    description: PropTypes.string
};

export default withStyles(styles, {withTheme: true})(UnknownError);
github Altinn / altinn-studio / src / studio / src / designer / frontend / ux-editor / containers / FormDesigner.tsx View on Github external
}

const mapsStateToProps = (
  state: IAppState,
  props: IFormDesignerProvidedProps,
): IFormDesignerProps => {
  return {
    classes: props.classes,
    components: state.formDesigner.layout.components,
    activeList: state.formDesigner.layout.activeList,
    language: state.appData.language.language,
    dataModel: state.appData.dataModel.model,
  };
};

export default withStyles(
  styles,
  { withTheme: true },
)(
  connect(
    mapsStateToProps,
  )(
      FormDesigner,
    )
);
github kalmhq / kalm / frontend / src / forms / Application / component.tsx View on Github external
variant="outlined"
              size="small"
              color="primary"
              fullWidth
              startIcon={}
              onClick={() => {}}>
              Import from Component Template
            
          
         */}
      
    );
  }
}

const RenderComponentsWithStyles = withStyles(styles)(RenderComponentsRaw);

let components = (props: stateProps) => {
  return ;
};

export const Components = connect(mapStateToProps)(components);
github MozillaSecurity / virgo / src / renderer / components / Error / ErrorDialog.jsx View on Github external
Feedback
            
          
        
      
    )
  }
}

ErrorDialog.propTypes = {
  onSuccessCallback: PropTypes.func.isRequired,
  content: PropTypes.node.isRequired,
  title: PropTypes.string
}

export default withStyles(styles, { withTheme: true })(ErrorDialog)
github arakat-community / arakat / arakat-frontend / src / components / draggable-node / index.tsx View on Github external
paddingLeft: ( props.depth + 2) * 2 + "vw",
            }}
        >
            
                <span> {props.title}</span>
            
        

    );
};

export default withStyles(style, {withTheme: true})(DraggableNodeComponent);
github mui-org / material-ui-pickers / docs / pages / demo / datepicker / CustomDay.example.jsx View on Github external
background: theme.palette.primary.main,
    color: theme.palette.common.white,
  },
  firstHighlight: {
    extend: 'highlight',
    borderTopLeftRadius: '50%',
    borderBottomLeftRadius: '50%',
  },
  endHighlight: {
    extend: 'highlight',
    borderTopRightRadius: '50%',
    borderBottomRightRadius: '50%',
  },
}));

export default withStyles(styles)(CustomElements);