Skip to content

Instantly share code, notes, and snippets.

View zaguiini's full-sized avatar
🏠
Working from home

Luis Felipe Zaguini zaguiini

🏠
Working from home
View GitHub Profile
export * from './auth'
export const SIGN_UP = 'SIGN_UP'
import t, {
SIGN_UP
} from 'src/lang'
export default ({ handleSignUpClick }) => (
<button onClick={handleSignUpClick}>
{t(SIGN_UP)}
</button>
)
import {
SIGN_UP
} from '../keys'
export default {
[SIGN_UP]: 'Sign up',
}
import { takeLatest } from 'redux-saga/effects'
import {
CREATE_USER,
FETCH_USER,
} from 'src/store/definitions'
import {
createUserSaga,
fetchUserSaga,
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)
import React from 'react'
import {
BrowserRouter,
Route,
} from 'react-router-dom'
import Home from './Home'
import Settings from './Settings'
export default () => (
import React from 'react'
import store from './store'
import { Provider } from 'react-redux'
import Main from '@/views'
export default () => (
<Provider
store={store}
import React from 'react'
import classNames from 'classnames'
import styles from './styles.module.scss'
export default ({ negative = false, name, surname }) => (
<div
className={classNames(
styles['name-container'],
negative && styles['name-negative'],
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,