diff --git a/app/assets/javascripts/preferences/panes/AccountPreferences.tsx b/app/assets/javascripts/preferences/panes/AccountPreferences.tsx index acad1b282fb..faf149cbd2c 100644 --- a/app/assets/javascripts/preferences/panes/AccountPreferences.tsx +++ b/app/assets/javascripts/preferences/panes/AccountPreferences.tsx @@ -30,7 +30,7 @@ export const AccountPreferences = observer( return ( - + {appState.enableUnfinishedFeatures && } diff --git a/app/assets/javascripts/preferences/panes/account/Credentials.tsx b/app/assets/javascripts/preferences/panes/account/Credentials.tsx index ff7e092907e..98613703cca 100644 --- a/app/assets/javascripts/preferences/panes/account/Credentials.tsx +++ b/app/assets/javascripts/preferences/panes/account/Credentials.tsx @@ -8,12 +8,14 @@ import { useState } from 'preact/hooks'; import { ChangeEmail } from '@/preferences/panes/account/changeEmail'; import { PasswordWizardType } from '@/types'; import { FunctionComponent } from 'preact'; +import { AppState } from '@/ui_models/app_state'; type Props = { application: WebApplication; + appState: AppState; }; -export const Credentials: FunctionComponent = observer(({ application }: Props) => { +export const Credentials: FunctionComponent = observer(({ application, appState }: Props) => { const [isChangeEmailDialogOpen, setIsChangeEmailDialogOpen] = useState(false); const user = application.getUser(); @@ -31,14 +33,16 @@ export const Credentials: FunctionComponent = observer(({ application }: You're signed in as {user?.email} -