styles and login return
This commit is contained in:
1 parent
1e368913ab
commit
e45b2ca9cd
2 files changed
+4
-4
No files matched your search
@@ -10,15 +10,15 @@ function showAdmin(user) {
|
|||||||
return user && user.email === 'ntr@mnml.gg';
|
return user && user.email === 'ntr@mnml.gg';
|
||||||
}
|
}
|
||||||
|
|
||||||
const DEFAULT_ROUTE = '/info';
|
const DEFAULT_ROUTE = '/';
|
||||||
|
|
||||||
const Nav = () => {
|
const Nav = () => {
|
||||||
const dispatch = useDispatch()
|
const dispatch = useDispatch()
|
||||||
const user = useSelector((state: State) => state.user);
|
const user = useSelector((state: State) => state.user);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!user) route('/login');
|
if (!user) return route('/login');
|
||||||
route(DEFAULT_ROUTE)
|
return route(DEFAULT_ROUTE)
|
||||||
}, [user])
|
}, [user])
|
||||||
|
|
||||||
async function logoutClick(e) {
|
async function logoutClick(e) {
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ function LoginPage({ mode }) {
|
|||||||
<div class="landing">
|
<div class="landing">
|
||||||
<Login mode={mode} />
|
<Login mode={mode} />
|
||||||
<div></div>
|
<div></div>
|
||||||
<div class="info">
|
<div>
|
||||||
<p>Mates Crates is a record importing service.</p>
|
<p>Mates Crates is a record importing service.</p>
|
||||||
<p>We bundle orders together from thousands of online stores to reduce the cost of shipping vinyl.</p>
|
<p>We bundle orders together from thousands of online stores to reduce the cost of shipping vinyl.</p>
|
||||||
<p>Based in Preston.</p>
|
<p>Based in Preston.</p>
|
||||||
|
|||||||
Reference in new issue
Block a user