From a06a4748be1f423dce21026f992ebb6a400d4912 Mon Sep 17 00:00:00 2001
From: lonkaars <loek@pipeframe.xyz>
Date: Fri, 23 Apr 2021 22:21:25 +0200
Subject: redirect login/register when logged in + dprint fmt

---
 components/footer.tsx | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

(limited to 'components/footer.tsx')

diff --git a/components/footer.tsx b/components/footer.tsx
index af79154..8a1319e 100644
--- a/components/footer.tsx
+++ b/components/footer.tsx
@@ -1,6 +1,6 @@
 import { ReactNode } from 'react';
-import Logo from '../components/logo';
 import * as cookie from 'react-cookies';
+import Logo from '../components/logo';
 
 import ExitToAppOutlinedIcon from '@material-ui/icons/ExitToAppOutlined';
 import ExtensionIcon from '@material-ui/icons/Extension';
@@ -24,7 +24,7 @@ function PageLink(props: {
 }
 
 export function Footer() {
-	var loggedIn = !!cookie.load("token");
+	var loggedIn = !!cookie.load('token');
 
 	return <div className='footer'>
 		<div className='header'>
@@ -42,11 +42,11 @@ export function Footer() {
 				<PageLink icon={<LockIcon />} href='/privacy' children='Privacy' />
 				<PageLink icon={<GitHubIcon />} href='https://github.com/lonkaars/connect-4' children='Broncode' />
 			</div>
-			{ loggedIn && <div className='column'>
+			{loggedIn && <div className='column'>
 				<PageLink icon={<SettingsIcon />} href='/settings' children='Instellingen' />
 				<PageLink icon={<PersonIcon />} href='/user' children='Profiel' />
 				<PageLink icon={<ExitToAppOutlinedIcon />} href='/logout' children='Uitloggen' />
-				</div> }
+			</div>}
 		</div>
 	</div>;
 }
-- 
cgit v1.2.3

