MCPcopy Index your code
hub / github.com/refined-github/refined-github / getOnClick

Function getOnClick

source/features/status-subscription.tsx:156–160  ·  view source on GitHub ↗
(target: SubscriptionStatus)

Source from the content-addressed store, hash-verified

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

Callers 1

addButtonFunction · 0.85

Calls 2

updateSubscriptionFunction · 0.85
addButtonFunction · 0.70

Tested by

no test coverage detected