feat: hide some prefs if not logged in (#979)
This commit is contained in:
@@ -91,6 +91,7 @@ export const Listed = observer(({ application }: Props) => {
|
||||
</a>
|
||||
</Text>
|
||||
</PreferencesSegment>
|
||||
{application.getUser() && (
|
||||
<PreferencesSegment>
|
||||
<Subtitle>Get Started</Subtitle>
|
||||
<Text>Create a free Listed author account to get started.</Text>
|
||||
@@ -102,6 +103,7 @@ export const Listed = observer(({ application }: Props) => {
|
||||
onClick={registerNewAccount}
|
||||
/>
|
||||
</PreferencesSegment>
|
||||
)}
|
||||
</PreferencesGroup>
|
||||
</PreferencesPane>
|
||||
)
|
||||
|
||||
@@ -20,6 +20,6 @@ export const Security: FunctionComponent<SecurityProps> = (props) => (
|
||||
<Protections application={props.application} />
|
||||
<TwoFactorAuthWrapper mfaProvider={props.mfaProvider} userProvider={props.userProvider} />
|
||||
<PasscodeLock appState={props.appState} application={props.application} />
|
||||
<Privacy application={props.application} />
|
||||
{props.application.getUser() && <Privacy application={props.application} />}
|
||||
</PreferencesPane>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user