feat: refactor the usage of toast (#1699)

This commit is contained in:
Qi
2023-03-27 13:24:14 +08:00
committed by GitHub
parent 66dec34209
commit 449ffbc73f
14 changed files with 60 additions and 44 deletions

View File

@@ -1,4 +1,4 @@
import { Button, toast } from '@affine/component';
import { Button } from '@affine/component';
import { DebugLogger } from '@affine/debug';
import { createEmptyBlockSuiteWorkspace } from '@affine/workspace/utils';
import { nanoid } from '@blocksuite/store';
@@ -10,6 +10,7 @@ import { createBroadCastChannelProvider } from '../../blocksuite/providers';
import PageList from '../../components/blocksuite/block-suite-page-list/page-list';
import { StyledPage, StyledWrapper } from '../../layouts/styles';
import type { BroadCastChannelProvider } from '../../shared';
import { toast } from '../../utils';
const logger = new DebugLogger('broadcast');

View File

@@ -1,4 +1,4 @@
import { Button, toast } from '@affine/component';
import { Button } from '@affine/component';
import { currentAffineUserAtom } from '@affine/workspace/affine/atom';
import {
clearLoginStorage,
@@ -14,6 +14,8 @@ import type { NextPage } from 'next';
import dynamic from 'next/dynamic';
import { useMemo } from 'react';
import { toast } from '../../utils';
const Viewer = dynamic(
() => import('@rich-data/viewer').then(m => ({ default: m.JsonViewer })),
{ ssr: false }