Skip to content

Commit

Permalink
revert changes.
Browse files Browse the repository at this point in the history
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
  • Loading branch information
Krishna2323 committed Aug 23, 2024
1 parent 3102c71 commit 7c8e35e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/components/EmojiPicker/EmojiPickerButtonDropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,13 @@ type EmojiPickerButtonDropdownProps = {
onModalHide: EmojiPickerAction.OnModalHideValue;
onInputChange: (emoji: string) => void;
value?: string;
shouldPassActiveEmoji?: boolean;
disabled?: boolean;
style: StyleProp<ViewStyle>;
};

function EmojiPickerButtonDropdown(
// eslint-disable-next-line @typescript-eslint/no-unused-vars
{isDisabled = false, onModalHide, onInputChange, value, disabled, style, shouldPassActiveEmoji = true, ...otherProps}: EmojiPickerButtonDropdownProps,
{isDisabled = false, onModalHide, onInputChange, value, disabled, style, ...otherProps}: EmojiPickerButtonDropdownProps,
// eslint-disable-next-line @typescript-eslint/no-unused-vars
ref: ForwardedRef<AnimatedTextInputRef>,
) {
Expand All @@ -57,7 +56,7 @@ function EmojiPickerButtonDropdown(
},
() => {},
undefined,
shouldPassActiveEmoji ? value : undefined,
value,
);
};

Expand Down
1 change: 0 additions & 1 deletion src/pages/settings/Profile/CustomStatus/StatusPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@ function StatusPage({draftStatus, currentUserPersonalDetails}: StatusPageProps)
onModalHide={() => {
inputRef.current?.focus();
}}
shouldPassActiveEmoji={false}
// eslint-disable-next-line @typescript-eslint/no-unused-vars
onInputChange={(emoji: string): void => {}}
/>
Expand Down

0 comments on commit 7c8e35e

Please sign in to comment.