Settings: only show account settings when logged in.

master
Tom Hacohen 4 years ago
parent bbc8d3cd88
commit b04a7bed5e

@ -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() {
<>
<AppBarOverride title="Settings" />
<Container>
<h1>Security Fingerprint</h1>
{(etebase) && (
<>
<h1>Account</h1>
<h2>Security Fingerprint</h2>
<SecurityFingerprint />
</>
)}
<h1>Look & Feel</h1>
<h2>Date & Time</h2>

Loading…
Cancel
Save