(target: SubscriptionStatus)
| 154 | : 'none'; |
| 155 | |
| 156 | const getOnClick = (target: SubscriptionStatus) => async (event: React.MouseEvent) => { |
| 157 | closestElement('fieldset', event.currentTarget).disabled = true; |
| 158 | await updateSubscription(target, id); |
| 159 | void addButton(subscriptionButton); |
| 160 | }; |
| 161 | |
| 162 | subscriptionButton.after( |
| 163 | // Use `fieldset` so that it can be disabled |
no test coverage detected