feat(polls): removed platform check and fixed button arrangement (#12780)
* feat(polls): removed platform check and fixed button arrangement
This commit is contained in:
parent
e1485fc253
commit
77e75815dc
|
@ -63,7 +63,6 @@ const PollAnswer = (props: AbstractProps) => {
|
|||
type = { PRIMARY } />
|
||||
</View>
|
||||
</>
|
||||
|
||||
);
|
||||
};
|
||||
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -53,7 +53,6 @@ const PollsPane = (props: AbstractProps) => {
|
|||
createMode
|
||||
? <PollCreate setCreateMode = { setCreateMode } />
|
||||
: <PollsList />
|
||||
|
||||
}
|
||||
{
|
||||
!createMode && <Button
|
||||
|
|
|
@ -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'
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue