react-code-dataset / wp-calypso /client /components /community-translator /translatable-textarea.jsx
react-code-dataset / wp-calypso /client /components /community-translator /translatable-textarea.jsx
Download wp-calypso/client/components/community-translator/translatable-textarea.jsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 638 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/components/community-translator/translatable-textarea.jsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/components/community-translator/translatable-textarea.jsx
-
curl -L -o translatable-textarea.jsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/components/community-translator/translatable-textarea.jsx
638 Bytes
| import { FormLabel } from '@automattic/components'; | |
| import FormTextarea from 'calypso/components/forms/form-textarea'; | |
| const TranslatableTextarea = ( { | |
| originalString, | |
| title, | |
| fieldName, | |
| onChange, | |
| value, | |
| disabled, | |
| } ) => ( | |
| <FormLabel className="community-translator__string-container" htmlFor={ fieldName }> | |
| <span className="community-translator__string-description">{ title }</span> | |
| <span> | |
| <dfn>{ originalString }</dfn> | |
| <FormTextarea | |
| id={ fieldName } | |
| name={ fieldName } | |
| value={ value } | |
| disabled={ disabled } | |
| onChange={ onChange } | |
| /> | |
| </span> | |
| </FormLabel> | |
| ); | |
| export default TranslatableTextarea; | |