How to use the @material-ui/core/styles/index.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 atulmy / hire-smart / code / web / src / modules / dashboard / Content / Overview / Column / index.js View on Github external
function collect(connect, monitor) {
  return {
    connectDropTarget: connect.dropTarget(),
    isOver: monitor.isOver()
  }
}
// Receive
const dropTarget = {
  drop(props, monitor) {
    props.itemDropped(monitor.getItem().kanbanId, props.columnKey)
  }
}

export default compose(
  DropTarget('card', dropTarget, collect),
  withStyles(styles)
)(Column)
github atulmy / fullstack-javascript-architecture / frontend / app / web / src / modules / pages / Home / index.js View on Github external
<button style="{{" color="primary">Login</button>
      
    

    {/* Auth Check */}
    
  
)

// Component Properties
Home.propTypes = {
  classes: PropTypes.object.isRequired
}

export default withStyles(styles)(Home)
github atulmy / fullstack-javascript-architecture / frontend / landing / src / modules / common / NotFound / index.js View on Github external
<button color="{'primary'}">
        Back to Home
      </button>
    
  
)

// Component Properties
NotFound.propTypes = {
  classes: PropTypes.object.isRequired
}

export default withStyles(styles)(NotFound)
github OpenCTI-Platform / opencti / opencti-platform / opencti-front / src / private / components / signatures / stix_observables / StixObservablePopover.js View on Github external
);
  }
}

StixObservablePopover.propTypes = {
  stixObservableId: PropTypes.string,
  classes: PropTypes.object,
  t: PropTypes.func,
  history: PropTypes.object,
};

export default compose(
  inject18n,
  withRouter,
  withStyles(styles),
)(StixObservablePopover);
github OpenCTI-Platform / opencti / opencti-platform / opencti-front / src / private / components / threats / threat_actors / ThreatActorPopover.js View on Github external
);
  }
}

ThreatActorPopover.propTypes = {
  id: PropTypes.string,
  paginationOptions: PropTypes.object,
  classes: PropTypes.object,
  t: PropTypes.func,
  history: PropTypes.object,
};

export default compose(
  inject18n,
  withRouter,
  withStyles(styles),
)(ThreatActorPopover);
github OpenCTI-Platform / opencti / opencti-platform / opencti-front / src / private / components / Profile.js View on Github external
return ;
          }}
        /&gt;
      
    );
  }
}

Profile.propTypes = {
  classes: PropTypes.object,
  t: PropTypes.func,
};

export default compose(
  inject18n,
  withStyles(styles),
)(Profile);
github allpro / react-router-pause / example / src / FormPage / Notification.js View on Github external
{...other}
		/>
	)
}

const { bool, func, node, object, oneOf, oneOfType, string } = PropTypes

CustomSnackbarContent.propTypes = {
	classes: object.isRequired,
	className: string,
	onClose: func,
	message: oneOfType([string, node]),
	variant: oneOf(['success', 'warning', 'error', 'info'])
}

const StyledCustomSnackbarContent = withStyles(styles1)(CustomSnackbarContent)


const styles2 = theme => ({
	margin: {
		flexGrow: 0,
		margin: theme.spacing.unit,
		fontFamily: 'Roboto, Helvetica, Arial, sans-serif'
	},
	button: {
		padding: theme.spacing.unit / 2
	}
})

function Notification( props ) {
	const { classes } = props
	const msg = props.message || 'Please fix the errors shown.'
github OpenCTI-Platform / opencti / opencti-platform / opencti-front / src / private / components / entities / regions / RegionPopover.js View on Github external
);
  }
}

RegionPopover.propTypes = {
  id: PropTypes.string,
  classes: PropTypes.object,
  t: PropTypes.func,
  history: PropTypes.object,
};

export default compose(
  inject18n,
  withRouter,
  withStyles(styles),
)(RegionPopover);
github ioBroker / ioBroker.javascript / src / src / Dialogs / Cron.js View on Github external
}

DialogCron.propTypes = {
    classes: PropTypes.object,
    onClose: PropTypes.func,
    onOk: PropTypes.func.isRequired,
    title: PropTypes.string,
    cron: PropTypes.string,
    cancel: PropTypes.string,
    ok: PropTypes.string,
    simple: PropTypes.bool,
    language: PropTypes.string

};

export default withStyles(styles)(DialogCron);
github OpenCTI-Platform / opencti / opencti-platform / opencti-front / src / private / components / connectors / ConnectorsStatus.js View on Github external
fragment ConnectorsStatus_data on Query {
        connectors {
          id
          name
          active
          connector_type
          connector_scope
          updated_at
        }
      }
    `,
  },
  connectorsStatusQuery,
);

export default compose(inject18n, withStyles(styles))(ConnectorsStatus);