mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-20 19:46:32 +08:00
chore(core): remove outline viewer feature flag (#7770)
This commit is contained in:
-21
@@ -124,26 +124,6 @@ const SplitViewSettingRow = () => {
|
||||
);
|
||||
};
|
||||
|
||||
const OutlineViewerSettingRow = () => {
|
||||
const { appSettings, updateSettings } = useAppSettingHelper();
|
||||
|
||||
const onToggle = useCallback(
|
||||
(checked: boolean) => {
|
||||
updateSettings('enableOutlineViewer', checked);
|
||||
},
|
||||
[updateSettings]
|
||||
);
|
||||
|
||||
return (
|
||||
<ExperimentalFeaturesItem
|
||||
title="Outline Viewer"
|
||||
checked={appSettings.enableOutlineViewer}
|
||||
onChange={onToggle}
|
||||
testId="outline-viewer-switch"
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
||||
// feature flag -> display name
|
||||
const blocksuiteFeatureFlags: Partial<Record<keyof BlockSuiteFlags, string>> = {
|
||||
enable_expand_database_block: 'Enable Expand Database Block',
|
||||
@@ -198,7 +178,6 @@ const ExperimentalFeaturesMain = () => {
|
||||
>
|
||||
<SplitViewSettingRow />
|
||||
<BlocksuiteFeatureFlagSettings />
|
||||
<OutlineViewerSettingRow />
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user