From 2899d720290ea93e93b997066beea8cd7380f8b6 Mon Sep 17 00:00:00 2001 From: Anton Arnautov Date: Mon, 20 Feb 2023 13:24:07 +0100 Subject: [PATCH] feat(Reactions): switch options type to array to guarantee order --- src/components/Reactions/ReactionSelector.tsx | 98 +++++++++---------- src/components/Reactions/ReactionsList.tsx | 6 +- .../Reactions/SimpleReactionsList.tsx | 6 +- .../Reactions/hooks/useProcessReactions.tsx | 6 +- src/components/Reactions/reactionOptions.tsx | 26 ++--- 5 files changed, 71 insertions(+), 71 deletions(-) diff --git a/src/components/Reactions/ReactionSelector.tsx b/src/components/Reactions/ReactionSelector.tsx index e4cc4a5b12..45c40ef2aa 100644 --- a/src/components/Reactions/ReactionSelector.tsx +++ b/src/components/Reactions/ReactionSelector.tsx @@ -150,57 +150,55 @@ const UnMemoizedReactionSelector = React.forwardRef( )} ); diff --git a/src/components/Reactions/ReactionsList.tsx b/src/components/Reactions/ReactionsList.tsx index c587dde59b..d1275763c6 100644 --- a/src/components/Reactions/ReactionsList.tsx +++ b/src/components/Reactions/ReactionsList.tsx @@ -101,10 +101,10 @@ const UnMemoizedReactionsList = < >