From b04a7bed5eda6962b17190a500b047f1b5ee2f75 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Thu, 1 Oct 2020 17:21:02 +0300 Subject: [PATCH] Settings: only show account settings when logged in. --- src/Settings/index.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/Settings/index.tsx b/src/Settings/index.tsx index 957d3d3..903425c 100644 --- a/src/Settings/index.tsx +++ b/src/Settings/index.tsx @@ -36,6 +36,7 @@ function SecurityFingerprint() { } export default React.memo(function Settings() { + const etebase = useCredentials(); const dispatch = useDispatch(); const settings = useSelector((state: StoreState) => state.settings); @@ -52,8 +53,13 @@ export default React.memo(function Settings() { <> -

Security Fingerprint

- + {(etebase) && ( + <> +

Account

+

Security Fingerprint

+ + + )}

Look & Feel

Date & Time