mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-17 06:16:59 +08:00
fix(web): disable notification center (#2934)
This commit is contained in:
@@ -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,
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@@ -445,7 +445,7 @@ export const WorkspaceLayoutInner: FC<PropsWithChildren> = ({ children }) => {
|
||||
<PageListTitleCellDragOverlay />
|
||||
</DndContext>
|
||||
<QuickSearch />
|
||||
<NotificationCenter />
|
||||
{runtimeConfig.enableNotificationCenter && <NotificationCenter />}
|
||||
<Setting />
|
||||
</>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user