Files
standardnotes-app-web/app/assets/javascripts/preferences/PreferencesViewWrapper.tsx
Gorjan Petrovski 77525a56cd feat: implement UI for logging out (#638)
* feat: implement UI for logging out

* feat: use old style dialogs for logout confirmation

* feat: implement manage sessions

* feat: implement session logout success dialog

* feat: use snjs alert for revoking sessions confirmation

* fix: make OtherSessionsLogout easier to read
2021-09-21 19:01:32 +02:00

28 lines
811 B
TypeScript

import { FunctionComponent } from 'preact';
import { observer } from 'mobx-react-lite';
import { WebApplication } from '@/ui_models/application';
import { PreferencesView } from './PreferencesView';
import { AppState } from '@/ui_models/app_state';
export interface PreferencesViewWrapperProps {
appState: AppState;
application: WebApplication;
}
export const PreferencesViewWrapper: FunctionComponent<PreferencesViewWrapperProps> =
observer(({ appState, application }) => {
if (!appState.preferences.isOpen) {
return null;
}
return (
<PreferencesView
closePreferences={() => appState.preferences.closePreferences()}
application={application}
appState={appState}
mfaProvider={application}
userProvider={application}
/>
);
});