flowtyped everything, some functional, safety, and structural changes

This commit is contained in:
41666 2019-03-10 03:18:11 -05:00
parent 6f3eca7a64
commit d2aecb38ca
92 changed files with 17554 additions and 1440 deletions

View file

@ -0,0 +1,11 @@
// @flow
import * as React from 'react'
import HeaderBarCommon from './common'
const HeaderBarAuth: React.StatelessFunctionalComponent<{}> = () => (
<HeaderBarCommon>
hi
</HeaderBarCommon>
)
export default HeaderBarAuth

View file

@ -0,0 +1,14 @@
// @flow
import * as React from 'react'
export type CommonProps = {
children: React.Element<any>
}
const HeaderBarCommon: React.StatelessFunctionalComponent<CommonProps> = ({ children }) => (
<div>
{ children }
</div>
)
export default HeaderBarCommon

View file

@ -0,0 +1,11 @@
// @flow
import * as React from 'react'
import HeaderBarCommon from './common'
const HeaderBarUnauth: React.StatelessFunctionalComponent<{}> = () => (
<HeaderBarCommon>
hi
</HeaderBarCommon>
)
export default HeaderBarUnauth