Skip to content
Snippets Groups Projects
Commit e80d8880 authored by mashazyu's avatar mashazyu Committed by Sofiya Tepikin
Browse files

Moves unique styles of AppPage component to local file

parent 3de92b9f
No related branches found
No related tags found
No related merge requests found
...@@ -4,7 +4,7 @@ import { ScrollView, StyleSheet } from 'react-native' ...@@ -4,7 +4,7 @@ import { ScrollView, StyleSheet } from 'react-native'
import AppText from '../common/app-text' import AppText from '../common/app-text'
import { Containers, Typography } from '../../styles/redesign' import { Colors, Fonts, Sizes, Spacing, Typography } from '../../styles/redesign'
const AppPage = ({ children, title }) => { const AppPage = ({ children, title }) => {
return( return(
...@@ -22,10 +22,16 @@ AppPage.propTypes = { ...@@ -22,10 +22,16 @@ AppPage.propTypes = {
const styles = StyleSheet.create({ const styles = StyleSheet.create({
container: { container: {
...Containers.page backgroundColor: Colors.tourquiseLight,
flex: 1
}, },
title: { title: {
...Typography.pageTitle alignSelf: 'center',
fontFamily: Fonts.bold,
fontWeight: '700',
fontSize: Sizes.title,
marginHorizontal: Spacing.base,
...Typography.title
} }
}) })
......
import Colors from './colors'
export default { export default {
centerItems: { centerItems: {
alignItems: 'center', alignItems: 'center',
flex: 1, flex: 1,
justifyContent: 'center' justifyContent: 'center'
},
page: {
backgroundColor: Colors.tourquiseLight,
flex: 1
} }
} }
\ No newline at end of file
...@@ -17,13 +17,6 @@ export default { ...@@ -17,13 +17,6 @@ export default {
fontFamily: fonts.main, fontFamily: fonts.main,
fontSize: sizes.base fontSize: sizes.base
}, },
pageTitle: {
alignSelf: 'center',
fontFamily: fonts.bold,
fontWeight: '700',
fontSize: sizes.title,
marginHorizontal: Spacing.base,
},
title: { title: {
color: Colors.purple, color: Colors.purple,
marginVertical: Spacing.large marginVertical: Spacing.large
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment