Download wp-calypso/client/me/memberships/controller.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 565 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/me/memberships/controller.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/me/memberships/controller.js
-
curl -L -o controller.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/me/memberships/controller.js
565 Bytes
| import { createElement } from 'react'; | |
| import CancelledSubscriptionRedirectReturn from './cancelled-subscription-redirect-return'; | |
| import Subscription from './subscription'; | |
| export function subscription( context, next ) { | |
| const subscriptionId = context.params.subscriptionId; | |
| if ( subscriptionId ) { | |
| context.primary = createElement( Subscription, { subscriptionId: subscriptionId } ); | |
| } | |
| next(); | |
| } | |
| export function cancelledSubscriptionReturnFromRedirect( context, next ) { | |
| context.primary = createElement( CancelledSubscriptionRedirectReturn ); | |
| next(); | |
| } | |