Download wp-calypso/client/me/notification-settings/subscription-management-back-button/index.jsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 771 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/me/notification-settings/subscription-management-back-button/index.jsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/me/notification-settings/subscription-management-back-button/index.jsx
-
curl -L -o index.jsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/me/notification-settings/subscription-management-back-button/index.jsx
771 Bytes
| import page from '@automattic/calypso-router'; | |
| import { Gridicon } from '@automattic/components'; | |
| import { Button } from '@wordpress/components'; | |
| import { localize } from 'i18n-calypso'; | |
| import { Component } from 'react'; | |
| import { connect } from 'react-redux'; | |
| import './style.scss'; | |
| class SubscriptionManagementBackButton extends Component { | |
| render() { | |
| return ( | |
| page.current.includes( 'referrer=management' ) && ( | |
| <Button | |
| className="subscription-management-back-button" | |
| onClick={ () => page( '/reader/subscriptions' ) } | |
| icon={ <Gridicon icon="chevron-left" size={ 12 } /> } | |
| > | |
| { this.props.translate( 'Manage all subscriptions' ) } | |
| </Button> | |
| ) | |
| ); | |
| } | |
| } | |
| export default connect()( localize( SubscriptionManagementBackButton ) ); | |