Chore: Implement review feedback

This commit is contained in:
BloodyMarie
2022-03-06 00:03:25 +01:00
committed by Lisa Hillebrand
parent 03b359019e
commit d1ac12d165
3 changed files with 38 additions and 33 deletions
+20
View File
@@ -0,0 +1,20 @@
import React from 'react'
import PropTypes from 'prop-types'
import { StyleSheet, View } from 'react-native'
const ButtonRow = ({ children }) => {
return <View style={styles.container}>{children}</View>
}
ButtonRow.propTypes = {
children: PropTypes.node.isRequired,
}
const styles = StyleSheet.create({
container: {
flexDirection: 'row',
justifyContent: 'space-between',
},
})
export default ButtonRow
+4 -4
View File
@@ -2,12 +2,12 @@ import React from 'react'
import PropTypes from 'prop-types'
import { StyleSheet, View } from 'react-native'
const ButtonToButton = ({ children }) => {
const ButtonRow = ({ children }) => {
return <View style={styles.container}>{children}</View>
}
ButtonToButton.propTypes = {
children: PropTypes.node,
ButtonRow.propTypes = {
children: PropTypes.node.isRequired,
}
const styles = StyleSheet.create({
@@ -17,4 +17,4 @@ const styles = StyleSheet.create({
},
})
export default ButtonToButton
export default ButtonRow