Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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;<button>
{confirmLabel}
</button>,
];
return (
<dialog>
);
};
ConfirmDialog.propTypes = {
...Button.propTypes,
onConfirm: PropTypes.func.isRequired,
confirmLabel: PropTypes.string,
confirmStyle: PropTypes.string,
};
ConfirmDialog.defaultProps = {
...Button.defaultProps,
confirmLabel: __('Save'),
cancelLabel: __('Cancel'),
dangerouslySetInnerHTML: undefined,
message: undefined,
confirmStyle: 'primary',
};
export default ConfirmDialog;
</dialog>