Moves Segment stiles to local file, separates MenuItem component.

This commit is contained in:
mashazyu
2020-03-24 12:26:15 +01:00
committed by Sofiya Tepikin
parent ce92b0af33
commit 4d6f0db30a
4 changed files with 71 additions and 81 deletions
+6 -3
View File
@@ -4,7 +4,7 @@ import { StyleSheet, View } from 'react-native'
import AppText from './app-text'
import { Containers, Spacing, Typography } from '../../styles/redesign'
import { Colors, Spacing, Typography } from '../../styles/redesign'
const Segment = ({ children, last, title }) => {
const containerStyle = last ? styles.containerLast : styles.container
@@ -30,8 +30,11 @@ const segmentContainer = {
const styles = StyleSheet.create({
container: {
...segmentContainer,
...Containers.bottomBorder
borderStyle: 'solid',
borderBottomWidth: 2,
borderBottomColor: Colors.grey,
paddingBottom: Spacing.base,
...segmentContainer
},
containerLast: {
...segmentContainer