File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
src/components/feed-sources/feed-source-type-templates Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 11import { React } from "react" ;
22import PropTypes from "prop-types" ;
3+ import { useTranslation } from "react-i18next" ;
34import FormInput from "../../util/forms/form-input" ;
45
56const NotifiedFeedTypeTemplate = ( {
67 handleInput,
78 formStateObject,
8- t,
99 mode,
1010} ) => {
11+ const { t } = useTranslation ( "common" , {
12+ keyPrefix : "feed-source-manager.dynamic-fields.notified-feed-type" ,
13+ } ) ;
1114 return (
1215 < >
1316 < FormInput
1417 name = "token"
1518 type = "text"
16- label = { t ( "dynamic-fields.NotifiedFeedType. token" ) }
19+ label = { t ( "token" ) }
1720 onChange = { handleInput }
1821 placeholder = {
1922 mode === "PUT"
20- ? t ( "dynamic-fields.redactedValueInputPlaceholder " )
23+ ? t ( "redacted-value-input-placeholder " )
2124 : ""
2225 }
2326 value = { formStateObject . token }
@@ -31,7 +34,6 @@ NotifiedFeedTypeTemplate.propTypes = {
3134 formStateObject : PropTypes . shape ( {
3235 token : PropTypes . string ,
3336 } ) ,
34- t : PropTypes . func ,
3537 mode : PropTypes . string ,
3638} ;
3739export default NotifiedFeedTypeTemplate ;
You can’t perform that action at this time.
0 commit comments