styles and login return

This commit is contained in:
ntr committed 2022-09-19 19:36:02 +10:00
1 parent 1e368913ab
commit e45b2ca9cd
2 files changed
+4 -4

No files matched your search

+3 -3
View File
@@ -10,15 +10,15 @@ function showAdmin(user) {
return user && user.email === 'ntr@mnml.gg';
}
const DEFAULT_ROUTE = '/info';
const DEFAULT_ROUTE = '/';
const Nav = () => {
const dispatch = useDispatch()
const user = useSelector((state: State) => state.user);
useEffect(() => {
if (!user) route('/login');
route(DEFAULT_ROUTE)
if (!user) return route('/login');
return route(DEFAULT_ROUTE)
}, [user])
async function logoutClick(e) {
+1 -1
View File
@@ -94,7 +94,7 @@ function LoginPage({ mode }) {
<div class="landing">
<Login mode={mode} />
<div></div>
<div class="info">
<div>
<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>Based in Preston.</p>