THE COLOR OF MONEY

This commit is contained in:
Elijah Lucian
2021-07-13 18:10:48 -06:00
parent 49a3fa1d5f
commit ad67de77cc
10 changed files with 39 additions and 67 deletions
+4 -5
View File
@@ -1,6 +1,5 @@
import { ReactNode } from 'react'
import { Avatar, Dropdown, Menu } from 'antd'
import { Header } from 'antd/lib/layout/layout'
import { Link, useHistory } from 'react-router-dom'
import { useUserContext } from '../../contexts/UserContext'
@@ -18,14 +17,14 @@ export const AppHeader = ({ children }: Props) => {
// Unauthed Header
if (!user)
return (
<Header className="stax-header">
<header className="stax-header">
<h3>CashStacks! 💵</h3>
</Header>
</header>
)
// Authed Header
return (
<div className="stax-header">
<header>
<div className="header-left">
<Link to="/">
<h3>MVP Django React! 🤠</h3>
@@ -52,6 +51,6 @@ export const AppHeader = ({ children }: Props) => {
<Avatar>{user.name[0]}</Avatar>
</Dropdown>
</div>
</div>
</header>
)
}