Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
);
});
if (!this.state.show) {
return null;
}
return (
Close,
<button>Copy</button>
]}
>
{this.state.copyStatus === CopyStatus.COPIED && (
}
/>
)}
{this.state.copyStatus === CopyStatus.OLD_COPY && (
export const VMDisks: React.FC = ({ vmLikeEntity, pvcs, datavolumes }) => {
const [isLocked, setIsLocked] = useSafetyFirst(false);
const withProgress = wrapWithProgress(setIsLocked);
return (
<div>
<div>
<div>
<button id="create-disk-btn">
withProgress(
diskModalEnhanced({
blocking: true,
vmLikeEntity,
}).result,
)
}
isDisabled={isLocked}
>
Create Disk
</button>
</div>
</div>
<div></div></div>
render() {
return (
<>
<span style="{{">
{!this.props.readOnly && (
<span style="{{">
<button>
Save
</button>
</span>
)}
<span style="{{">
<button>
Reload
</button>
</span>
<span style="{{">
<button>
{this.props.readOnly ? 'Close' : 'Cancel'}
</button>
</span>
</span>
dirty,
projects,
}) => (
<form>
<button data-test-id="deploy-image-form-submit-btn" type="submit">
Create
</button>
<button type="button">
Cancel
</button>
);
</form>
projects,
}) => (
<form>
<button type="submit">
Create
</button>
<button type="button">
Cancel
</button>
);
</form>
<footer>
{!isValid && showError && (
)}
{!isLastStep && (
<button type="submit"> {
setShowError(!isValid);
if (isValid) {
onNext();
}
}}
isDisabled={isNextButtonDisabled}
>
{activeStepID === VMWizardTab.REVIEW ? createVMText : 'Next'}
</button>
)}
{!isFinishingStep && (
<button> {</button></footer>
<button>
</button>
{vehicleCount}
<button data-cy="demo-add-vehicle">
</button>
}) => {
const [clicked, setClicked] = React.useState(false);
return (
<span id="{`vehicle-${id}`}">{description}</span>
<button data-test-key="{`capacity-decrease-${id}`}"> capacityChangeHandler({ vehicleId: id, capacity: capacity - 1 })}
>
</button>
{capacity}
<button data-test-key="{`capacity-increase-${id}`}"> capacityChangeHandler({ vehicleId: id, capacity: capacity + 1 })}
>
</button>
errorMessage,
successMessage,
disableSubmit,
showAlert,
}) => (
{showAlert && (
Click Save to save changes or Reload to cancel.
)}
<button type="{handleSubmit">
Save
</button>
<button type="button">
Reload
</button>
);
/>
<p></p>
<button id="save-changes" type="submit">
Create
</button>
<button type="button" id="cancel">
Cancel
</button>
);
};