diff --git a/app/soapbox/components/ui/streamfield/streamfield.tsx b/app/soapbox/components/ui/streamfield/streamfield.tsx index ff4f619f8..48e8d43ba 100644 --- a/app/soapbox/components/ui/streamfield/streamfield.tsx +++ b/app/soapbox/components/ui/streamfield/streamfield.tsx @@ -22,9 +22,9 @@ interface IStreamfield { /** Array of values for the streamfield. */ values: any[], /** Input label message. */ - labelText?: React.ReactNode, + label?: React.ReactNode, /** Input hint message. */ - hintText?: React.ReactNode, + hint?: React.ReactNode, /** Callback to add an item. */ onAddItem?: () => void, /** Callback to remove an item by index. */ @@ -40,8 +40,8 @@ interface IStreamfield { /** List of inputs that can be added or removed. */ const Streamfield: React.FC = ({ values, - labelText, - hintText, + label, + hint, onAddItem, onRemoveItem, onChange, @@ -61,8 +61,8 @@ const Streamfield: React.FC = ({ return ( - {labelText && {labelText}} - {hintText && {hintText}} + {label && {label}} + {hint && {hint}} diff --git a/app/soapbox/features/edit_profile/index.tsx b/app/soapbox/features/edit_profile/index.tsx index b2e0df172..e7c607a6a 100644 --- a/app/soapbox/features/edit_profile/index.tsx +++ b/app/soapbox/features/edit_profile/index.tsx @@ -452,8 +452,8 @@ const EditProfile: React.FC = () => { {features.profileFields && ( } - hintText={} + label={} + hint={} values={data.fields_attributes || []} onChange={handleFieldsChange} onAddItem={handleAddField}