From 756506cbb6e5c511295009a00587bff05b3e99c1 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Thu, 28 Apr 2022 17:27:12 -0500 Subject: [PATCH] Forms: accept additional props --- app/soapbox/features/forms/index.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/soapbox/features/forms/index.tsx b/app/soapbox/features/forms/index.tsx index 3e778860f..3a7bed2de 100644 --- a/app/soapbox/features/forms/index.tsx +++ b/app/soapbox/features/forms/index.tsx @@ -78,6 +78,7 @@ interface ISimpleInput { label?: React.ReactNode, hint?: React.ReactNode, error?: boolean, + onChange?: React.ChangeEventHandler, } export const SimpleInput: React.FC = (props) => { @@ -111,6 +112,7 @@ interface ISimpleForm { className?: string, onSubmit?: React.FormEventHandler, acceptCharset?: string, + style?: React.CSSProperties, } export const SimpleForm: React.FC = (props) => { @@ -217,7 +219,12 @@ export const SelectDropdown: React.FC = (props) => { ) : selectElem; }; -export const TextInput: React.FC = props => ( +interface ITextInput { + onChange?: React.ChangeEventHandler, + placeholder?: string, +} + +export const TextInput: React.FC = props => ( );