Merge pull request #270 from toeverything/fix/whiteboard-edgeless

fix: whiteboard -> edgeless
This commit is contained in:
zuomeng wang
2022-08-16 21:02:28 +08:00
committed by GitHub
21 changed files with 53 additions and 67 deletions
@@ -103,7 +103,7 @@ export const GroupView = (props: CreateView) => {
<View {...props} />
</GroupContainer>
{editor.isWhiteboard ? null : (
{editor.isEdgeless ? null : (
<GroupAction onAddGroup={addGroup} />
)}
</GroupBox>
@@ -1,5 +1,5 @@
const _regex =
/^(https?:\/\/(localhost:4200|(nightly|app)\.affine\.pro|.*?\.ligo-virgo\.pages\.dev)\/\w{28}\/)?(affine\w{16})(\/whiteboard)?$/;
/^(https?:\/\/(localhost:4200|(nightly|app)\.affine\.pro|.*?\.ligo-virgo\.pages\.dev)\/\w{28}\/)?(affine\w{16})(\/edgeless)?$/;
export const isAffineUrl = (url?: string) => {
if (!url) return false;