From 77e75815dc8fc96e49962dbf1e4871cd1a06540f Mon Sep 17 00:00:00 2001 From: Calinteodor Date: Fri, 13 Jan 2023 16:04:39 +0200 Subject: [PATCH] feat(polls): removed platform check and fixed button arrangement (#12780) * feat(polls): removed platform check and fixed button arrangement --- react/features/polls/components/native/PollAnswer.tsx | 1 - react/features/polls/components/native/PollCreate.js | 4 +--- react/features/polls/components/native/PollsPane.js | 1 - react/features/polls/components/native/styles.js | 10 ---------- 4 files changed, 1 insertion(+), 15 deletions(-) diff --git a/react/features/polls/components/native/PollAnswer.tsx b/react/features/polls/components/native/PollAnswer.tsx index 63738751f..e2bcbf8d8 100644 --- a/react/features/polls/components/native/PollAnswer.tsx +++ b/react/features/polls/components/native/PollAnswer.tsx @@ -63,7 +63,6 @@ const PollAnswer = (props: AbstractProps) => { type = { PRIMARY } /> - ); }; diff --git a/react/features/polls/components/native/PollCreate.js b/react/features/polls/components/native/PollCreate.js index 8ca51bfb6..64c31da7b 100644 --- a/react/features/polls/components/native/PollCreate.js +++ b/react/features/polls/components/native/PollCreate.js @@ -117,8 +117,6 @@ const PollCreate = (props: AbstractProps) => { } ); - const buttonRowStyles = Platform.OS === 'android' - ? chatStyles.buttonRowAndroid : chatStyles.buttonRowIos; const pollCreateButtonsContainerStyles = Platform.OS === 'android' ? chatStyles.pollCreateButtonsContainerAndroid : chatStyles.pollCreateButtonsContainerIos; @@ -157,7 +155,7 @@ const PollCreate = (props: AbstractProps) => { style = { chatStyles.pollCreateAddButton } type = { SECONDARY } /> + style = { chatStyles.buttonRow }>