first bits of redux

This commit is contained in:
41666 2019-03-20 09:25:28 -05:00
parent 9c7f7fda73
commit def2b0d2a3
13 changed files with 170 additions and 16 deletions

View file

@ -1,11 +1,12 @@
// @flow
import * as React from 'react'
import HeaderBarCommon, { Logomark } from './common'
import { type User } from '../../containers/user'
import { type User } from '../../stores/user'
import DiscordIcon from '../discord-guild-pic'
import styled from 'styled-components'
import { Hide } from '../../kit/media'
import Link from 'next/link'
import { connect } from 'react-redux'
const temporaryServer = {
id: '423497622876061707',
@ -86,4 +87,8 @@ const HeaderBarAuth: React.StatelessFunctionalComponent<{ user: User }> = ({ use
</HeaderBarCommon>
)
export default HeaderBarAuth
const mapStateToProps = state => {
}
export default connect(mapStateToProps)(HeaderBarAuth)

View file

@ -3,7 +3,7 @@ import * as React from 'react'
import GlobalColors from './global-colors'
import SocialCards from './social-cards'
import HeaderBar from '../containers/header-bar'
import { type User } from '../containers/user'
import { type User } from '../stores/user'
import styled from 'styled-components'
const LayoutWrapper = styled.div`