From fd6e663a1bcc43cfc49bda99ccbfab380489324b Mon Sep 17 00:00:00 2001 From: eug-vs Date: Mon, 10 Aug 2020 00:02:24 +0300 Subject: feat!: add useLocalStorage hook --- src/pages/FeedPage/FeedPage.tsx | 2 +- src/pages/HomePage/HomePage.tsx | 4 ++-- src/pages/Page.tsx | 12 ++++++------ src/pages/ProfilePage/ProfileInfo.tsx | 7 +++---- src/pages/ProfilePage/ProfilePage.tsx | 6 ++++-- 5 files changed, 16 insertions(+), 15 deletions(-) (limited to 'src/pages') diff --git a/src/pages/FeedPage/FeedPage.tsx b/src/pages/FeedPage/FeedPage.tsx index 8e7fb55..da0fb2a 100644 --- a/src/pages/FeedPage/FeedPage.tsx +++ b/src/pages/FeedPage/FeedPage.tsx @@ -17,7 +17,7 @@ const FeedPage: React.FC = () => { return ( - {isAuthenticated() && } + {isAuthenticated && } ); diff --git a/src/pages/HomePage/HomePage.tsx b/src/pages/HomePage/HomePage.tsx index 17e377a..b1dc506 100644 --- a/src/pages/HomePage/HomePage.tsx +++ b/src/pages/HomePage/HomePage.tsx @@ -92,7 +92,7 @@ const HomePage: React.FC = () => { Here you can share your thougts about Which with us! Note that you can ony leave feedback once per application version (there will be plenty of them later).

- {isAuthenticated() ? : ( + {isAuthenticated ? : ( <>

You must be authorized to leave feedback.

- {!isAuthenticated() && ( + {!isAuthenticated && (