prod nginx changes and remove want on offer complete

This commit is contained in:
ntr committed 2022-09-15 22:14:54 +10:00
1 parent 2c66c47163
commit 644398319d
6 files changed
+52 -18

No files matched your search

+5 -1
View File
@@ -5,6 +5,10 @@ import { useSelector, useDispatch } from 'react-redux'
import http from './../http';
import { State, userState } from './../store';
function showAdmin(user) {
return user && user.email === 'ntr@mnml.gg';
}
const Header = () => {
const dispatch = useDispatch()
const user = useSelector((state: State) => state.user);
@@ -48,7 +52,7 @@ const Header = () => {
return (
<header>
{user ? nav() : anonNav()}
{user ? adminNav() : null}
{showAdmin(user) ? adminNav() : <div></div>}
{user ? userNav() : null}
</header>
);