chore: add build flag for change log (#1792)

This commit is contained in:
JimmFly
2023-04-03 19:13:43 +08:00
committed by GitHub
parent fcf5d5602d
commit 196b9f2dbb
8 changed files with 17 additions and 4 deletions

View File

@@ -1,4 +1,5 @@
import { DebugLogger } from '@affine/debug';
import { config } from '@affine/env';
import { setUpLanguage, useTranslation } from '@affine/i18n';
import { createAffineGlobalChannel } from '@affine/workspace/affine/sync';
import { jotaiWorkspacesAtom } from '@affine/workspace/atom';
@@ -339,7 +340,11 @@ export const WorkspaceLayoutInner: React.FC<React.PropsWithChildren> = ({
{!isPublicWorkspace && (
<HelpIsland
showList={
router.query.pageId ? undefined : ['whatNew', 'contact']
router.query.pageId
? undefined
: config.enableChangeLog
? ['whatNew', 'contact']
: ['contact']
}
/>
)}