lerna: split up bulk of packages

This commit is contained in:
41666 2019-04-02 23:10:45 -05:00
parent cb0b1d2410
commit 47a2e5694e
No known key found for this signature in database
GPG key ID: BC51D07640DC10AF
90 changed files with 0 additions and 0 deletions

View file

@ -0,0 +1,25 @@
// @flow
import * as React from 'react'
import Role, { type RoleData } from './index'
export type DemoRoleProps = {
role: RoleData
}
type DemoRoleState = {
active: boolean
}
export default class RoleDemo extends React.Component<DemoRoleProps, DemoRoleState> {
state = {
active: false
}
onToggle = (n: boolean) => {
this.setState({ active: n })
}
render () {
return <Role role={this.props.role} onToggle={this.onToggle} active={this.state.active} />
}
}