Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const DialogWrapper = ({ intl, isOpen, walletDir, onDelete, onCancel }) => {
useCloseOnUnmount(isOpen, onCancel)
if (!isOpen) {
return null
}
const checkboxFieldName = 'actionACK'
// bind button disabled state to a form field or ignore it if we are dealing with a remote
// wallet and don't have confirmation checkbox
const DeleteWalletButton = withFieldState(checkboxFieldName)(({ fieldState, ...rest }) => (
<button>
))
const buttons = (
<>
</button><button type="button">
</button>
)
const header = (
const DialogWrapper = ({ intl, isForceClose, isOpen, onClose, onCancel, csvDelay }) => {
useCloseOnUnmount(isOpen, onCancel)
if (!isOpen) {
return null
}
const checkboxFieldName = 'actionACK'
// bind button disabled state to a form field
const CloseChannelButton = withFieldState(checkboxFieldName)(({ fieldState, ...rest }) => (
<button>
))
const buttons = (
<>
</button><button type="button">
</button>
const DialogWrapper = ({ intl, isOpen, isRestoreMode, onSkip, onCancel, position }) => {
if (!isOpen) {
return null
}
const checkboxFieldName = 'actionACK'
const SkipButton = withFieldState(checkboxFieldName)(({ fieldState, ...rest }) => (
<button>
))
const buttons = (
<>
</button><button type="button">
</button>
)
const header = (
const AutopayStatus = ({ fieldState, ...rest }) => (
)
AutopayStatus.propTypes = {
fieldState: PropTypes.object.isRequired,
}
export default compose(
withFieldState('isEnabled'),
injectIntl
)(AutopayStatus)