Prettify rest of the components files except stats

This commit is contained in:
Sofiya Tepikin
2022-09-08 12:19:36 +02:00
parent 23549ee72d
commit 840fca5b9e
14 changed files with 208 additions and 226 deletions
+7 -10
View File
@@ -10,7 +10,7 @@ import { navigate } from '../../slices/navigation'
import { Colors, Fonts, Sizes } from '../../styles'
const Logo = ({ navigate }) => {
return(
return (
<TouchableOpacity onPress={() => navigate('Home')}>
<AppText style={styles.logo}>drip.</AppText>
</TouchableOpacity>
@@ -18,24 +18,21 @@ const Logo = ({ navigate }) => {
}
Logo.propTypes = {
navigate: PropTypes.func.isRequired
navigate: PropTypes.func.isRequired,
}
const styles = StyleSheet.create({
logo: {
color: Colors.turquoiseDark,
fontFamily: Fonts.bold,
fontSize: Sizes.title
}
fontSize: Sizes.title,
},
})
const mapDispatchToProps = (dispatch) => {
return({
return {
navigate: (page) => dispatch(navigate(page)),
})
}
}
export default connect(
null,
mapDispatchToProps,
)(Logo)
export default connect(null, mapDispatchToProps)(Logo)