Extract link component and parse all app text for links

This commit is contained in:
Julia Friesel
2019-02-02 11:55:03 +01:00
parent 87301da648
commit 0878654e82
8 changed files with 41 additions and 45 deletions
@@ -1,6 +0,0 @@
import links from '../../i18n/en/links'
export default function(url) {
const link = Object.values(links).find(link => link.url === url)
return link ? link.text : url
}