Skip to content

Instantly share code, notes, and snippets.

View brunobertolini's full-sized avatar
🎯
Focusing

Bruno Bertolini brunobertolini

🎯
Focusing
View GitHub Profile
@brunobertolini
brunobertolini / flexbox.js
Last active February 27, 2018 17:29
Based on https://gist.github.com/jorilallo/a9e60b3ce3f7373e3c65a50d65e8e1e8 with propTypes instead of Flow, and using styled-by
import React from 'react'
import PropTypes from 'prop-types'
import styled from 'styled-components'
import styledBy from 'styled-by'
const GlobalCssValues = ['initial', 'inherit', 'unset']
const WrapValue = ['nowrap', 'wrap', 'wrap-reverse', ...GlobalCssValues]
const JustifyValue = [
'center',
'start',
import React from 'react'
import { connect } from 'react-redux'
import { setLanguage } from 'redux-i18n'
import { BrowserRouter as Router } from 'react-router-dom'
import Route from 'services/router'
import * as authData from 'data/auth'
import * as persist from 'data/persist'