Skip to content

Commit

Permalink
Fixed input prop types
Browse files Browse the repository at this point in the history
  • Loading branch information
dyland88 committed Mar 21, 2024
1 parent 93b848b commit 34c3a26
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/src/components/Common/CustomInputs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const WelcomeEmailInput: React.FC<ChatInputProps> = ({ value, onChangeTex

// Maybe will put LogInEmailInput & LogInPasswordInput two together into a single component

export const LogInEmailInput: React.FC<ChatInputProps> = ({
export const LogInEmailInput: React.FC<ChatInputProps & { invalid: boolean}> = ({
value,
onChangeText,
invalid,
Expand All @@ -32,7 +32,7 @@ export const LogInEmailInput: React.FC<ChatInputProps> = ({
);
};

export const LogInPasswordInput: React.FC<ChatInputProps> = ({
export const LogInPasswordInput: React.FC<ChatInputProps & { invalid: boolean}> = ({
value,
onChangeText,
invalid,
Expand Down Expand Up @@ -98,7 +98,7 @@ export const SignUpConfirmPasswordInput: React.FC<ChatInputProps> = ({
);
};

export const ChatInput: React.FC<ChatInputProps> = ({
export const ChatInput: React.FC<ChatInputProps & { onSend: () => void }> = ({
value,
onChangeText,
onSend,
Expand Down

0 comments on commit 34c3a26

Please sign in to comment.