Last active
February 15, 2019 16:48
-
-
Save rafaelrozon/c32077e50d278a449a410fbfa78792db to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import * as R from 'ramda'; | |
import * as Constants from '../constants'; | |
import Link from './Link'; | |
const wrapLink = props => childProps => | |
<Link | |
{...props} | |
{...childProps} | |
/>; | |
const Config = {} | |
R.keys(Constants.routes).forEach(route => { | |
Config[route] = wrapLink(Constants.routes[route]); | |
}); | |
export default Config; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment