Chore/retire redux
This commit is contained in:
@@ -1,24 +1,12 @@
|
||||
import React from 'react'
|
||||
import { StyleSheet, TouchableOpacity } from 'react-native'
|
||||
import PropTypes from 'prop-types'
|
||||
import { StyleSheet } from 'react-native'
|
||||
|
||||
import AppText from '../common/app-text'
|
||||
|
||||
import { connect } from 'react-redux'
|
||||
import { navigate } from '../../slices/navigation'
|
||||
|
||||
import { Colors, Fonts, Sizes } from '../../styles'
|
||||
|
||||
const Logo = ({ navigate }) => {
|
||||
return (
|
||||
<TouchableOpacity onPress={() => navigate('Home')}>
|
||||
<AppText style={styles.logo}>drip.</AppText>
|
||||
</TouchableOpacity>
|
||||
)
|
||||
}
|
||||
|
||||
Logo.propTypes = {
|
||||
navigate: PropTypes.func.isRequired,
|
||||
const Logo = () => {
|
||||
return <AppText style={styles.logo}>drip.</AppText>
|
||||
}
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
@@ -29,10 +17,4 @@ const styles = StyleSheet.create({
|
||||
},
|
||||
})
|
||||
|
||||
const mapDispatchToProps = (dispatch) => {
|
||||
return {
|
||||
navigate: (page) => dispatch(navigate(page)),
|
||||
}
|
||||
}
|
||||
|
||||
export default connect(null, mapDispatchToProps)(Logo)
|
||||
export default Logo
|
||||
|
||||
Reference in New Issue
Block a user