lerna: starting point

This commit is contained in:
41666 2019-04-02 23:05:19 -05:00
parent f7e2898633
commit cb0b1d2410
No known key found for this signature in database
GPG key ID: BC51D07640DC10AF
17 changed files with 730 additions and 1067 deletions

View file

@ -4,8 +4,8 @@ import { colors } from '../global-colors'
import Color from 'color'
import RoleStyled from './role.styled'
import Tooltip from '../tooltip'
import logger from '../../../logger'
const log = logger(__filename)
// import logger from '../../../logger'
// const log = logger(__filename)
const fromColors = (colors) => Object.entries(colors).reduce(
(acc, [v, val]) => ({ ...acc, [`--role-color-${v}`]: val })
@ -45,15 +45,15 @@ export default class Role extends React.Component<RoleProps, RoleState> {
}
onMouseOver = () => {
log.debug('caught hovering')
// log.debug('caught hovering')
if (this.props.disabled && this.state.hovering === false) {
log.debug('set hovering')
// log.debug('set hovering')
this.setState({ hovering: true })
}
}
onMouseOut = () => {
log.debug('out hovering')
// log.debug('out hovering')
this.setState({ hovering: false })
}

View file

@ -16,7 +16,7 @@ const defaultProps: SocialCardProps = {
imageSize: 200
}
const SocialCards: React.StatelessFunctionalComponent<SocialCardProps> = (props) => {
const SocialCards = (props: SocialCardProps) => {
props = {
...defaultProps,
...props