Make link work

This commit is contained in:
Julia Friesel
2019-02-02 11:23:40 +01:00
parent 3e94df56e2
commit 8318f5d313
3 changed files with 5 additions and 8 deletions
+1 -4
View File
@@ -1,9 +1,6 @@
import {links} from '../../i18n/en/settings'
import links from '../../i18n/en/links'
export default function(url) {
const link = Object.values(links).find(link => link.url === url)
if (url === 'mailto:bloodyhealth@mailbox.org') {
console.log(links.email.url === url)
}
return link ? link.text : url
}