Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public render() {
const data = {
colors: {
Pending: patternfly.pfPaletteColors.black200,
Published: patternfly.pfPaletteColors.blue400,
Stopped: patternfly.pfPaletteColors.black300,
},
columns: [
[
this.props.i18nIntegrationStateRunning,
this.props.runningIntegrations,
],
[
this.props.i18nIntegrationStateStopped,
this.props.stoppedIntegrations,
],
[
this.props.i18nIntegrationStatePending,
this.props.pendingIntegrations,
],
render() {
const data = {
colors: {
Pending: patternfly.pfPaletteColors.black200,
Published: patternfly.pfPaletteColors.blue400,
Stopped: patternfly.pfPaletteColors.black300
},
columns: [
["Running", this.props.runningIntegrations],
["Stopped", this.props.stoppedIntegrations],
["Pending", this.props.pendingIntegrations]
],
type: "donut"
};
return (React.createElement(Card, null,
React.createElement(Card.Heading, null,
React.createElement(Card.Title, null, "Integration Board")),
React.createElement(Card.Body, null,
React.createElement(DonutChart, { id: "integration-board", size: { height: 120 }, data: data, tooltip: {
contents: patternfly.pfDonutTooltipContents,
public render() {
const data = {
colors: {
Pending: patternfly.pfPaletteColors.black200,
Published: patternfly.pfPaletteColors.blue400,
Stopped: patternfly.pfPaletteColors.black300,
},
columns: [
[
this.props.i18nIntegrationStateRunning,
this.props.runningIntegrations,
],
[
this.props.i18nIntegrationStateStopped,
this.props.stoppedIntegrations,
],
[
this.props.i18nIntegrationStatePending,
this.props.pendingIntegrations,
],
],
type: 'donut',
render() {
const data = {
colors: {
Pending: patternfly.pfPaletteColors.black200,
Published: patternfly.pfPaletteColors.blue400,
Stopped: patternfly.pfPaletteColors.black300
},
columns: [
["Running", this.props.runningIntegrations],
["Stopped", this.props.stoppedIntegrations],
["Pending", this.props.pendingIntegrations]
],
type: "donut"
};
return (React.createElement(Card, null,
React.createElement(Card.Heading, null,
React.createElement(Card.Title, null, "Integration Board")),
React.createElement(Card.Body, null,
React.createElement(DonutChart, { id: "integration-board", size: { height: 120 }, data: data, tooltip: {
contents: patternfly.pfDonutTooltipContents,
show: true