|-- workspace
|-- src
|-- translations
| |-- i18n.js
| |-- index.js
| |-- locales
| |-- en_ca.json
| |-- pt_br.json
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} | |
/>; |
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
/** | |
* Link - Component | |
*/ | |
import React from 'react'; | |
import PropTypes from 'prop-types'; | |
import { Link as RRDLink } from "react-router-dom"; | |
import { translate } from '~/decorators'; | |
import { Icon } from 'antd'; | |
@translate |
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
export const routes = { | |
Home: { | |
route: '/', | |
icon: 'home', | |
text: 'homeLink' | |
}, | |
Todos: { | |
route: '/todos', | |
icon: 'bars', | |
text: 'todosLink' |
|-- workspace
|-- src
|-- state
| |-- constants.js
| |-- index.js
| |-- reducer.js
| |-- store.js
| |-- middlewares
| |-- composeEnhancer.js
|-- workspace
|-- src
|-- pages
| |-- Home.jsx
| |-- Todos.jsx
|-- workspace
|-- src
|-- utils
|-- isEmail.js
|-- isZipcode.js
|-- moon-react-boilerplate
|-- src
|-- App.css
|-- App.js
|-- App.test.js
|-- index.js
|-- serviceWorker.js
|-- decorators
|-- docs
|-- workspace
|-- src
|-- routes
| |-- constants.js
| |-- index.js
| |-- components
| |-- Link.jsx
| |-- Links.jsx
| |-- RootRoutes.jsx
|-- workspace
|-- src
|-- features
| |-- todo
| |-- constants.js
| |-- index.js
| |-- selectors.js
| |-- state.js
| |-- todo.story.jsx