absolutely massive typescript porting time

This commit is contained in:
41666 2019-06-02 18:58:15 -05:00
parent 01f238f515
commit 30d08a630f
No known key found for this signature in database
GPG key ID: BC51D07640DC10AF
159 changed files with 2563 additions and 3861 deletions

View file

@ -1,21 +0,0 @@
// @flow
import * as React from 'react'
import dynamic from 'next/dynamic'
import { type User } from '../stores/user'
type Props = {
user: ?User
}
const HeaderBarAuth = dynamic(() => import('../components/header/auth'))
const HeaderBarUnauth = dynamic(() => import('../components/header/unauth'))
const HeaderBar = (props: Props) => {
if (props.user == null) {
return <HeaderBarUnauth {...props} />
} else {
return <HeaderBarAuth {...props} />
}
}
export default HeaderBar

View file

@ -0,0 +1,21 @@
import * as React from 'react'
import dynamic from 'next/dynamic'
import { User } from '../stores/user'
import HeaderBarAuthT from '../components/header/auth'
import HeaderBarUnauthT from '../components/header/unauth'
type Props = {
user?: User
}
const HeaderBarAuth = dynamic<typeof HeaderBarAuthT>(() => import('../components/header/auth'))
const HeaderBarUnauth = dynamic<typeof HeaderBarUnauthT>(() => import('../components/header/unauth'))
const HeaderBar = (props: Props) => {
if (props.user === undefined) {
return <HeaderBarUnauth {...props} />
} else {
return <HeaderBarAuth {...props} />
}
}
export default HeaderBar