* feat: add Labs pane to preferences * feat: use lab_features value for account switcher * feat: labs pane with experimental features * fix: use toggleExperimentalFeature from features service * fix: show premium modal if not entitled for experimental feature * fix: add isExperimental && isExperimentalEnabled to EditorMenuItem type * fix: hide experimental editor if not enabled * chore(deps): update features and snjs * fix: remove comment * fix: remove filtering from reloadExperimentalFeatures * fix: revert Footer.tsx * chore(deps): bump @standardnotes packages * fix: change experimental features layout Co-authored-by: Johnny Almonte <johnny243@users.noreply.github.com> Co-authored-by: Mo <mo@standardnotes.com>
31 lines
1.1 KiB
TypeScript
31 lines
1.1 KiB
TypeScript
import { WebApplication } from '@/ui_models/application';
|
|
import { AppState } from '@/ui_models/app_state';
|
|
import { FunctionComponent } from 'preact';
|
|
import { PreferencesPane } from '../components';
|
|
import { ErrorReporting, Tools, Defaults, LabsPane } from './general-segments';
|
|
import { ExtensionsLatestVersions } from '@/preferences/panes/extensions-segments';
|
|
import { Advanced } from '@/preferences/panes/account';
|
|
import { observer } from 'mobx-react-lite';
|
|
|
|
interface GeneralProps {
|
|
appState: AppState;
|
|
application: WebApplication;
|
|
extensionsLatestVersions: ExtensionsLatestVersions;
|
|
}
|
|
|
|
export const General: FunctionComponent<GeneralProps> = observer(
|
|
({ appState, application, extensionsLatestVersions }) => (
|
|
<PreferencesPane>
|
|
<Tools application={application} />
|
|
<Defaults application={application} />
|
|
<ErrorReporting appState={appState} />
|
|
<LabsPane application={application} />
|
|
<Advanced
|
|
application={application}
|
|
appState={appState}
|
|
extensionsLatestVersions={extensionsLatestVersions}
|
|
/>
|
|
</PreferencesPane>
|
|
)
|
|
);
|