Prettify common files
This commit is contained in:
@@ -4,7 +4,7 @@ import { StyleSheet, TouchableOpacity } from 'react-native'
|
||||
|
||||
import AppIcon from './app-icon'
|
||||
|
||||
import { HIT_SLOP} from '../../config'
|
||||
import { HIT_SLOP } from '../../config'
|
||||
import { Colors, Sizes } from '../../styles'
|
||||
|
||||
const CloseIcon = ({ onClose, color, ...props }) => {
|
||||
@@ -15,21 +15,21 @@ const CloseIcon = ({ onClose, color, ...props }) => {
|
||||
style={styles.container}
|
||||
{...props}
|
||||
>
|
||||
<AppIcon name='cross' color={color ? color : Colors.orange} />
|
||||
<AppIcon name="cross" color={color ? color : Colors.orange} />
|
||||
</TouchableOpacity>
|
||||
)
|
||||
}
|
||||
|
||||
CloseIcon.propTypes = {
|
||||
onClose: PropTypes.func.isRequired,
|
||||
color: PropTypes.string
|
||||
color: PropTypes.string,
|
||||
}
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
container: {
|
||||
alignSelf: 'flex-start',
|
||||
marginBottom: Sizes.base,
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
export default CloseIcon
|
||||
|
||||
Reference in New Issue
Block a user