File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed
src/components/feed-sources/feed-source-type-templates Expand file tree Collapse file tree 1 file changed +7
-9
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
5- const CalendarFeedTypeTemplate = ( {
6- handleInput,
7- formStateObject,
8- t,
9- mode,
10- } ) => {
6+ const CalendarFeedTypeTemplate = ( { handleInput, formStateObject, mode } ) => {
7+ const { t } = useTranslation ( "common" , {
8+ keyPrefix : "feed-source-manager.dynamic-fields.calendar-api-feed-type" ,
9+ } ) ;
1110 return (
1211 < >
1312 < FormInput
1413 name = "resources"
1514 type = "text"
16- label = { t ( "dynamic-fields.CalendarApiFeedType. resources" ) }
15+ label = { t ( "resources" ) }
1716 onChange = { handleInput }
1817 placeholder = {
1918 mode === "PUT"
20- ? t ( "dynamic-fields.redactedValueInputPlaceholder " )
19+ ? t ( "redacted-value-input-placeholder " )
2120 : ""
2221 }
2322 value = { formStateObject . resources }
@@ -31,7 +30,6 @@ CalendarFeedTypeTemplate.propTypes = {
3130 formStateObject : PropTypes . shape ( {
3231 resources : PropTypes . string ,
3332 } ) ,
34- t : PropTypes . func ,
3533 mode : PropTypes . string ,
3634} ;
3735export default CalendarFeedTypeTemplate ;
You can’t perform that action at this time.
0 commit comments