feat(polls): removed platform check and fixed button arrangement (#12780)

* feat(polls): removed platform check and fixed button arrangement
This commit is contained in:
Calinteodor 2023-01-13 16:04:39 +02:00 committed by GitHub
parent e1485fc253
commit 77e75815dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 1 additions and 15 deletions

View File

@ -63,7 +63,6 @@ const PollAnswer = (props: AbstractProps) => {
type = { PRIMARY } />
</View>
</>
);
};

View File

@ -117,8 +117,6 @@ const PollCreate = (props: AbstractProps) => {
}
</View>
);
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 } />
<View
style = { buttonRowStyles }>
style = { chatStyles.buttonRow }>
<Button
accessibilityLabel = 'polls.create.cancel'
labelKey = 'polls.create.cancel'

View File

@ -53,7 +53,6 @@ const PollsPane = (props: AbstractProps) => {
createMode
? <PollCreate setCreateMode = { setCreateMode } />
: <PollsList />
}
{
!createMode && <Button

View File

@ -169,16 +169,6 @@ export const chatStyles = createStyleSheet({
},
buttonRow: {
flexDirection: 'row',
justifyContent: 'center'
},
buttonRowAndroid: {
flexDirection: 'row',
justifyContent: 'space-between'
},
buttonRowIos: {
flexDirection: 'row',
justifyContent: 'space-between'
},