Prettify common files

This commit is contained in:
Sofiya Tepikin
2022-08-23 12:55:25 +02:00
parent 732f19ed63
commit 1b8fd97d16
13 changed files with 52 additions and 52 deletions
+4 -4
View File
@@ -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