Download wp-calypso/client/me/notification-settings/settings-form/labels.jsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 737 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/me/notification-settings/settings-form/labels.jsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/me/notification-settings/settings-form/labels.jsx
-
curl -L -o labels.jsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/me/notification-settings/settings-form/labels.jsx
737 Bytes
| import { localize } from 'i18n-calypso'; | |
| import PropTypes from 'prop-types'; | |
| import { Component } from 'react'; | |
| import LabelsList from './labels-list'; | |
| import StreamHeader from './stream-header'; | |
| class NotificationSettingsFormLabels extends Component { | |
| static displayName = 'NotificationSettingsFormLabels'; | |
| static propTypes = { | |
| settingKeys: PropTypes.arrayOf( PropTypes.string ).isRequired, | |
| }; | |
| shouldComponentUpdate() { | |
| return false; | |
| } | |
| render() { | |
| return ( | |
| <div className="notification-settings-form-labels"> | |
| <StreamHeader title={ this.props.translate( 'notifications' ) } /> | |
| <LabelsList settingKeys={ this.props.settingKeys } /> | |
| </div> | |
| ); | |
| } | |
| } | |
| export default localize( NotificationSettingsFormLabels ); | |