Merge branch 'develop' into feature/remove-react-fc

This commit is contained in:
DarkSky
2022-08-12 19:18:57 +08:00
committed by GitHub
64 changed files with 1953 additions and 1059 deletions

View File

@@ -23,7 +23,7 @@ export function RoutePrivate({
return <PageLoading />;
}
if (!user) {
if (!user || !pathname.startsWith(`/${user.id}`)) {
return (
<Navigate
to={unauthorizedRedirectTo}

View File

@@ -22,8 +22,8 @@ export function WorkspaceHome() {
workspace_id,
user_initial_page_id,
TemplateFactory.generatePageTemplateByGroupKeys({
name: null,
groupKeys: ['todolist'],
name: '👋 Get Started with AFFINE',
groupKeys: ['getStartedGroup0', 'getStartedGroup1'],
})
);
}