This file contains 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 i18n from 'i18n-js' | |
import en from './locales/en' | |
import es from './locales/es' | |
import pt from './locales/pt' | |
i18n.translations = { | |
en, | |
es, | |
pt, |
This file contains 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 * from './auth' |
This file contains 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 SIGN_UP = 'SIGN_UP' |
This file contains 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 t, { | |
SIGN_UP | |
} from 'src/lang' | |
export default ({ handleSignUpClick }) => ( | |
<button onClick={handleSignUpClick}> | |
{t(SIGN_UP)} | |
</button> | |
) |
This file contains 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 auth from './auth' | |
export default { | |
...auth, | |
} |
This file contains 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 { | |
SIGN_UP | |
} from '../keys' | |
export default { | |
[SIGN_UP]: 'Sign up', | |
} |
This file contains 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 { takeLatest } from 'redux-saga/effects' | |
import { | |
CREATE_USER, | |
FETCH_USER, | |
} from 'src/store/definitions' | |
import { | |
createUserSaga, | |
fetchUserSaga, |
This file contains 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 { createStore, applyMiddleware } from 'redux' | |
import createSagaMiddleware from 'redux-saga' | |
import loggerMiddleware from 'redux-logger' | |
import combinedReducer from 'src/store/reducers' | |
import rootSaga from 'src/store/sagas' | |
const sagaMiddleware = createSagaMiddleware() | |
sagaMiddleware.run(rootSaga) |
This file contains 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 { | |
BrowserRouter, | |
Route, | |
} from 'react-router-dom' | |
import Home from './Home' | |
import Settings from './Settings' | |
export default () => ( |
This file contains 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 store from './store' | |
import { Provider } from 'react-redux' | |
import Main from '@/views' | |
export default () => ( | |
<Provider | |
store={store} |