feat(preferences): error reporting segment (#652)

* feat(preferences): error reporting segment

* feat(preferences): move error reporting to general pane
This commit is contained in:
Gorjan Petrovski
2021-09-28 18:08:27 +02:00
committed by GitHub
parent b312df41a6
commit 3867f625f1
8 changed files with 117 additions and 20 deletions

View File

@@ -1,14 +1,14 @@
import { RoundIconButton } from '@/components/RoundIconButton';
import { TitleBar, Title } from '@/components/TitleBar';
import { FunctionComponent } from 'preact';
import { AccountPreferences, HelpAndFeedback, Security } from './panes';
import { AccountPreferences, General, HelpAndFeedback, Security } from './panes';
import { observer } from 'mobx-react-lite';
import { PreferencesMenu } from './PreferencesMenu';
import { PreferencesMenuView } from './PreferencesMenuView';
import { WebApplication } from '@/ui_models/application';
import { MfaProps } from './panes/two-factor-auth/MfaProps';
import { AppState } from '@/ui_models/app_state';
import { useCallback, useEffect } from 'preact/hooks';
import { useEffect } from 'preact/hooks';
interface PreferencesProps extends MfaProps {
application: WebApplication;
@@ -21,7 +21,7 @@ const PaneSelector: FunctionComponent<
> = observer((props) => {
switch (props.menu.selectedPaneId) {
case 'general':
return null;
return <General appState={props.appState} application={props.application} />
case 'account':
return (
<AccountPreferences