app/javascript/packs/pages/refunds/ReviewPage.js
function updateContinueButton() {
let disabled = !acceptDeclarationEl().is(':checked');
$('.refunds_review .behavior-continue-button').prop('disabled', disabled);
}
function enableContinueWhenAllowed() {
acceptDeclarationEl().on('click change', updateContinueButton);
}
function acceptDeclarationEl() {
return $(".refunds_review [name='refunds_review[accept_declaration]']");
}
function RefundReviewPage() {
updateContinueButton();
enableContinueWhenAllowed();
}
export default RefundReviewPage;