feat: upgrade preloading page to Downhill

This commit is contained in:
tzhangchi
2023-01-13 23:29:15 +08:00
parent 9415f46ce5
commit 2870972b49
3 changed files with 26 additions and 2 deletions
+2 -2
View File
@@ -2,7 +2,7 @@ import { useEffect, useRef } from 'react';
import type { Page, Workspace } from '@blocksuite/store';
import '@blocksuite/blocks';
import { EditorContainer } from '@blocksuite/editor';
import exampleMarkdown from '@/templates/Welcome-to-AFFiNE-Alpha-v2.0.md';
import exampleMarkdown from '@/templates/Welcome-to-AFFiNE-Alpha-Downhill.md';
import { styled } from '@/styles';
const StyledEditorContainer = styled('div')(() => {
@@ -39,7 +39,7 @@ export const Editor = ({ page, workspace, setEditor }: Props) => {
const title = metaTitle
? metaTitle
: isFirstPage
? 'Welcome to AFFiNE Alpha "Abbey Wood"'
? 'Welcome to AFFiNE Alpha "Downhill"'
: '';
workspace?.setPageMeta(page.id, { title });