chore: move toast from component to ui

This commit is contained in:
QiShaoXuan
2022-12-21 12:25:56 +08:00
parent 795a5733c0
commit b32c6ebc89
7 changed files with 6 additions and 5 deletions
@@ -26,7 +26,7 @@ import { Menu, MenuItem } from '@/ui/menu';
import { useRouter } from 'next/router';
import { useConfirm } from '@/providers/confirm-provider';
import { SyncIcon } from './sync-icon';
import { toast } from '@/components/toast';
import { toast } from '@/ui/toast';
import useCurrentPageMeta from '@/hooks/use-current-page-meta';
import { usePageHelper } from '@/hooks/use-page-helper';
const PopoverContent = () => {
@@ -21,7 +21,7 @@ import { IconButton } from '@/ui/button';
import { Tooltip } from '@/ui/tooltip';
import { useRouter } from 'next/router';
import { useAppState } from '@/providers/app-state-provider/context';
import { toast } from '@/components/toast';
import { toast } from '@/ui/toast';
import { usePageHelper } from '@/hooks/use-page-helper';
const FavoriteTag = ({
@@ -12,7 +12,7 @@ import {
OpenInNewIcon,
TrashIcon,
} from '@blocksuite/icons';
import { toast } from '@/components/toast';
import { toast } from '@/ui/toast';
import { usePageHelper } from '@/hooks/use-page-helper';
export const OperationCell = ({ pageMeta }: { pageMeta: PageMeta }) => {
+1 -1
View File
@@ -5,7 +5,7 @@ import Modal from '@/ui/modal';
import { useState } from 'react';
import { Button } from '@/ui/button';
import { FavouritedIcon } from '@blocksuite/icons';
import { toast } from '@/components/toast';
import { toast } from '@/ui/toast';
export const StyledHeader = styled('div')({
height: '60px',
width: '100vw',
@@ -3,7 +3,7 @@ import { Workspace, Page } from '@blocksuite/store';
import { useRouter } from 'next/router';
import { EditorHandlers, PageMeta } from '../interface';
import { EditorContainer } from '@blocksuite/editor';
import toast from '@/components/toast';
import toast from '@/ui/toast';
export const useEditorHandler = ({
editor,
workspace,
+1
View File
@@ -0,0 +1 @@
export * from './toast';