Download wp-calypso/client/mailing-lists/index.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 489 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/mailing-lists/index.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/mailing-lists/index.js
-
curl -L -o index.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/mailing-lists/index.js
489 Bytes
| import page from '@automattic/calypso-router'; | |
| import { makeLayout, render as clientRender } from 'calypso/controller'; | |
| import controller from './controller'; | |
| import './style.scss'; | |
| export default function () { | |
| // not putting category or email address in params, since `page` | |
| // currently double-decodes the URI before doing route matching | |
| // https://github.com/visionmedia/page.js/issues/306 | |
| page( '/mailing-lists/unsubscribe', controller.unsubscribe, makeLayout, clientRender ); | |
| } | |