Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
{/* Disks don't have historic data */}
)
}
DiskCharts.propTypes = {
{ history.length === 0 && }
{ history.length > 0 &&
}
}
page={this.props.page}
/>
{this.state.data.results && this.state.data.results.map((item) => ())
}
);
}
render() {
return (
<div>
{this.state.data && this.state.data.map((item) => (
))}
</div>
);
{this.state.view === 'rules_list' && }
{this.state.view === 'rules_list' && }
{ this.state.view === 'rules_list' && }
{this.state.view === 'rule' && }
{this.state.view === 'dashboard' && }
const {
id: idPrefix = 'create-vm-wizard-storage',
} = this.props
// ---- Table Row Editing Controller
this.inlineEditController = {
isEditing: ({ rowData, column, property }) => this.state.editing[rowData.id] !== undefined,
onActivate: ({ rowData }) => this.onEditDisk(rowData),
onConfirm: ({ rowData }) => this.handleRowConfirmChange(rowData),
onCancel: ({ rowData }) => this.handleRowCancelChange(rowData),
}
// ----- Table Cell Renderers
const headerFormatText = (label, { column }) => {label}
const inlineEditFormatter = Table.inlineEditFormatterFactory({
isEditing: additionalData => this.inlineEditController.isEditing(additionalData),
renderValue: (value, additionalData) => {
const { column } = additionalData
return (
{ column.valueView ? column.valueView(value, additionalData) : value }
)
},
renderEdit: (value, additionalData) => {
const { column } = additionalData
return (
{ column.editView ? column.editView(value, additionalData) : value }
}
const idPrefix = this.props.id || 'create-vm-wizard-nics'
// ---- Table Row Editing Controller
this.inlineEditController = {
isEditing: ({ rowData, column, property }) => this.state.editing[rowData.id] !== undefined,
onActivate: ({ rowData }) => this.onEditNic(rowData),
onConfirm: ({ rowData }) => this.handleRowConfirmChange(rowData),
onCancel: ({ rowData }) => this.handleRowCancelChange(rowData),
}
// ----- Table Cell Formatters
const headerFormatText = (label, { column }) => {label}
const inlineEditFormatter = Table.inlineEditFormatterFactory({
isEditing: additionalData => this.inlineEditController.isEditing(additionalData),
renderValue: (value, additionalData) => {
const { column } = additionalData
return (
{ column.valueView ? column.valueView(value, additionalData) : value }
)
},
renderEdit: (value, additionalData) => {
const { column } = additionalData
return (
{ column.editView ? column.editView(value, additionalData) : value }
import React from 'react';
import { Button, Icon } from 'patternfly-react';
// eslint-disable-next-line react/prefer-stateless-function
class BreadcrumbSwitcherToggler extends React.Component {
render() {
return (
<button>
</button>
);
}
}
BreadcrumbSwitcherToggler.propTypes = { ...Button.propTypes };
export default BreadcrumbSwitcherToggler;
export const entitlementsInlineEditFormatter = (inlineEditController) => {
const {
hasChanged, onChange, onActivate, isEditing,
} = inlineEditController;
return Table.inlineEditFormatterFactory({
isEditing,
renderValue: (value, additionalData) =>
renderValue(value, additionalData, onActivate),
renderEdit: (value, additionalData) =>
renderEdit(hasChanged, onChange, value, additionalData),
});
};
export const ConnectionSkeleton = (props) => (React.createElement(Card, { matchHeight: true },
React.createElement(Card.Body, null,
React.createElement(EmptyState, null,
React.createElement(ContentLoader, Object.assign({ height: 300, width: 200, speed: 2, primaryColor: "#f3f3f3", secondaryColor: "#ecebeb" }, props),
React.createElement("circle", { cx: "100", cy: "50", r: "40" }),
React.createElement("rect", { x: "5", y: "125", rx: "5", ry: "5", width: "190", height: "30" }),
React.createElement("rect", { x: "25", y: "180", rx: "5", ry: "5", width: "150", height: "15" }),
React.createElement("rect", { x: "40", y: "205", rx: "5", ry: "5", width: "120", height: "15" }))))));
//# sourceMappingURL=ConnectionSkeleton.js.map