From ab648332b7f9be548badb9e8b8a043773342a370 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Gessler?= <36667834+gessfred@users.noreply.github.com> Date: Sun, 7 Jan 2024 22:20:50 +0000 Subject: [PATCH] implement lookback selector --- web/src/App.js | 4 ++-- web/src/foundation/Selectors.js | 2 +- web/src/foundation/api.js | 24 ++++++++++++++++++++++-- web/src/pages/Insights.js | 19 +++++++++++-------- 4 files changed, 36 insertions(+), 13 deletions(-) diff --git a/web/src/App.js b/web/src/App.js index e8237e9..918bd62 100644 --- a/web/src/App.js +++ b/web/src/App.js @@ -2,14 +2,14 @@ import { useState, useEffect } from 'react' import './App.css' import { LandingPage } from './pages/LandingPage' import { Insights } from './pages/Insights' -import api, { isAuthenticated } from './foundation/api' +import api, { useAuth } from './foundation/api' //TODO make moving SVG background //TODO Add blurry foreground function Pages() { const [flag, setFlag] = useState(false) - const authenticated = isAuthenticated() + const authenticated = useAuth() return (