refactor: format and lint codebase (#971)
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
import { FunctionComponent } from 'preact'
|
||||
import { observer } from 'mobx-react-lite'
|
||||
import { WebApplication } from '@/UIModels/Application'
|
||||
import { PreferencesView } from './PreferencesView'
|
||||
import { AppState } from '@/UIModels/AppState'
|
||||
|
||||
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}
|
||||
/>
|
||||
)
|
||||
},
|
||||
)
|
||||
Reference in New Issue
Block a user