fix(web): disable notification center (#2934)

This commit is contained in:
Alex Yang
2023-06-30 11:29:05 +08:00
parent 5a4bb70869
commit 12ed9db207
3 changed files with 7 additions and 1 deletions

View File

@@ -30,6 +30,7 @@ const buildPreset = {
enableNewSettingModal: false,
enableNewSettingUnstableApi: false,
enableSQLiteProvider: false,
enableNotificationCenter: false,
},
beta: {},
internal: {},
@@ -46,6 +47,7 @@ const buildPreset = {
enableNewSettingModal: true,
enableNewSettingUnstableApi: false,
enableSQLiteProvider: false,
enableNotificationCenter: true,
},
};
@@ -90,6 +92,9 @@ const environmentPreset = {
enableNewSettingUnstableApi: process.env.ENABLE_NEW_SETTING_UNSTABLE_API
? process.env.ENABLE_NEW_SETTING_UNSTABLE_API === 'true'
: currentBuildPreset.enableNewSettingUnstableApi,
enableNotificationCenter: process.env.ENABLE_NOTIFICATION_CENTER
? process.env.ENABLE_NOTIFICATION_CENTER === 'true'
: currentBuildPreset.enableNotificationCenter,
};
/**

View File

@@ -445,7 +445,7 @@ export const WorkspaceLayoutInner: FC<PropsWithChildren> = ({ children }) => {
<PageListTitleCellDragOverlay />
</DndContext>
<QuickSearch />
<NotificationCenter />
{runtimeConfig.enableNotificationCenter && <NotificationCenter />}
<Setting />
</>
);