From a5ae2653d8ccdaf00270c0c8c8a30b88d7955114 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Sat, 1 Feb 2020 16:33:56 +0200 Subject: Do stuff --- frontend/src/App.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'frontend/src/App.js') diff --git a/frontend/src/App.js b/frontend/src/App.js index af2f99d..19e3426 100644 --- a/frontend/src/App.js +++ b/frontend/src/App.js @@ -1,7 +1,8 @@ -import React, { useEffect } from 'react'; +import React, { useEffect, useState } from 'react'; import { Router } from '@reach/router'; import Login from './Login'; +import Register from './Register'; import Home from './Home'; import userState from './UserState'; import './App.css'; @@ -15,6 +16,7 @@ const App = () => { const { username } = resp.data; userState.username = username; } catch (err) { + userState.authError = err; console.error(err); } }; @@ -25,7 +27,8 @@ const App = () => {
- + +
); -- cgit v1.3