File tree Expand file tree Collapse file tree 2 files changed +0
-4
lines changed
Expand file tree Collapse file tree 2 files changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ interface IForm {
99 contactInput : string ;
1010 contactIsValid : boolean ;
1111 setContactInput : Dispatch < SetStateAction < string > > ;
12- validator : RegExp ;
1312 isEditing ?: boolean ;
1413}
1514
@@ -19,7 +18,6 @@ const FormContact: React.FC<IForm> = ({
1918 contactInput,
2019 contactIsValid,
2120 setContactInput,
22- validator,
2321 isEditing,
2422} ) => {
2523 const fieldVariant = useMemo ( ( ) => {
@@ -37,7 +35,6 @@ const FormContact: React.FC<IForm> = ({
3735 placeholder = { contactPlaceholder }
3836 value = { contactInput }
3937 onChange = { setContactInput }
40- validate = { ( value ) => ( validator . test ( value ) ? true : undefined ) }
4138 />
4239 ) ;
4340} ;
Original file line number Diff line number Diff line change @@ -96,7 +96,6 @@ const FormContactDetails: React.FC<ISettings> = ({ toggleIsSettingsOpen }) => {
9696 contactInput = { emailInput }
9797 contactIsValid = { emailIsValid }
9898 setContactInput = { setEmailInput }
99- validator = { EMAIL_REGEX }
10099 isEditing = { isEditingEmail }
101100 />
102101 </ div >
You can’t perform that action at this time.
0 commit comments