diff --git a/components/common/button-row.js b/components/common/button-row.js new file mode 100644 index 0000000..e67dfcb --- /dev/null +++ b/components/common/button-row.js @@ -0,0 +1,20 @@ +import React from 'react' +import PropTypes from 'prop-types' +import { StyleSheet, View } from 'react-native' + +const ButtonRow = ({ children }) => { + return {children} +} + +ButtonRow.propTypes = { + children: PropTypes.node.isRequired, +} + +const styles = StyleSheet.create({ + container: { + flexDirection: 'row', + justifyContent: 'space-between', + }, +}) + +export default ButtonRow diff --git a/components/common/button-to-button.js b/components/common/button-to-button.js index 5a9d7da..e67dfcb 100644 --- a/components/common/button-to-button.js +++ b/components/common/button-to-button.js @@ -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 {children} } -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 diff --git a/components/settings/about.js b/components/settings/about.js index 7cd7328..f12a926 100644 --- a/components/settings/about.js +++ b/components/settings/about.js @@ -5,7 +5,7 @@ import AppPage from '../common/app-page' import AppText from '../common/app-text' import Segment from '../common/segment' import Button from '../common/button' -import ButtonToButton from '../common/button-to-button' +import ButtonRow from '../common/button-row' import labels from '../../i18n/en/settings' import links from '../../i18n/en/links' @@ -15,29 +15,18 @@ const AboutSection = () => { {labels.aboutSection.text} - - - - - + + {[links.email, links.gitlab, links.website].map((link) => ( + + ))} + {labels.philosophy.text} @@ -47,11 +36,7 @@ const AboutSection = () => { {labels.donate.note} -