Extract link component and parse all app text for links
This commit is contained in:
1 parent
87301da648
commit
0878654e82
8 files changed
+41
-45
No files matched your search
@@ -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
|
||||
}
|
||||
Reference in new issue
Block a user