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
@@ -21,7 +21,7 @@ const Link = ({ children, style }) => {
Link.propTypes = {
children: PropTypes.node,
style: PropTypes.object
style: PropTypes.object,
}
const styles = StyleSheet.create({
@@ -29,12 +29,12 @@ const styles = StyleSheet.create({
color: Colors.purple,
textDecorationLine: 'underline',
...Typography.mainText,
}
},
})
function replaceUrlWithText(url) {
const link = Object.values(links).find(l => l.url === url)
const link = Object.values(links).find((l) => l.url === url)
return (link && link.text) || url
}
export default Link
export default Link