mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-06-17 10:39:09 +00:00
flowtyped everything, some functional, safety, and structural changes
This commit is contained in:
parent
6f3eca7a64
commit
d2aecb38ca
92 changed files with 17554 additions and 1440 deletions
30
UI/containers/header-bar.js
Normal file
30
UI/containers/header-bar.js
Normal file
|
@ -0,0 +1,30 @@
|
|||
// @flow
|
||||
import * as React from 'react'
|
||||
import dynamic from 'next/dynamic'
|
||||
import { withRedux } from '../config/redux'
|
||||
import { bindActionCreators } from 'redux'
|
||||
import { connect } from 'react-redux'
|
||||
import { namespaceConfig } from 'fast-redux'
|
||||
import * as User from './user'
|
||||
|
||||
type Props = {
|
||||
user: User.User
|
||||
}
|
||||
|
||||
const HeaderBarAuth = dynamic(() => import('../components/header/auth'))
|
||||
const HeaderBarUnauth = dynamic(() => import('../components/header/unauth'))
|
||||
|
||||
const HeaderBar: React.StatelessFunctionalComponent<Props> = () => {
|
||||
// if ()
|
||||
return null
|
||||
}
|
||||
|
||||
const mapStateToProps = (state): Props => {
|
||||
return {}
|
||||
}
|
||||
|
||||
function mapDispatchToProps (dispatch) {
|
||||
return bindActionCreators({ }, dispatch)
|
||||
}
|
||||
|
||||
export default withRedux(connect(mapStateToProps, mapDispatchToProps)(HeaderBar))
|
Loading…
Add table
Add a link
Reference in a new issue