feat: hide some prefs if not logged in (#979)
This commit is contained in:
@@ -91,17 +91,19 @@ export const Listed = observer(({ application }: Props) => {
|
|||||||
</a>
|
</a>
|
||||||
</Text>
|
</Text>
|
||||||
</PreferencesSegment>
|
</PreferencesSegment>
|
||||||
<PreferencesSegment>
|
{application.getUser() && (
|
||||||
<Subtitle>Get Started</Subtitle>
|
<PreferencesSegment>
|
||||||
<Text>Create a free Listed author account to get started.</Text>
|
<Subtitle>Get Started</Subtitle>
|
||||||
<Button
|
<Text>Create a free Listed author account to get started.</Text>
|
||||||
className="mt-3"
|
<Button
|
||||||
variant="normal"
|
className="mt-3"
|
||||||
disabled={requestingAccount}
|
variant="normal"
|
||||||
label={requestingAccount ? 'Creating account...' : 'Create new author'}
|
disabled={requestingAccount}
|
||||||
onClick={registerNewAccount}
|
label={requestingAccount ? 'Creating account...' : 'Create new author'}
|
||||||
/>
|
onClick={registerNewAccount}
|
||||||
</PreferencesSegment>
|
/>
|
||||||
|
</PreferencesSegment>
|
||||||
|
)}
|
||||||
</PreferencesGroup>
|
</PreferencesGroup>
|
||||||
</PreferencesPane>
|
</PreferencesPane>
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -20,6 +20,6 @@ export const Security: FunctionComponent<SecurityProps> = (props) => (
|
|||||||
<Protections application={props.application} />
|
<Protections application={props.application} />
|
||||||
<TwoFactorAuthWrapper mfaProvider={props.mfaProvider} userProvider={props.userProvider} />
|
<TwoFactorAuthWrapper mfaProvider={props.mfaProvider} userProvider={props.userProvider} />
|
||||||
<PasscodeLock appState={props.appState} application={props.application} />
|
<PasscodeLock appState={props.appState} application={props.application} />
|
||||||
<Privacy application={props.application} />
|
{props.application.getUser() && <Privacy application={props.application} />}
|
||||||
</PreferencesPane>
|
</PreferencesPane>
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user