feat: use wrapped tooltip

This commit is contained in:
fantasticit 2022-03-22 13:57:27 +08:00
parent fda147c492
commit d71d725dcf
2 changed files with 2 additions and 3 deletions

View File

@ -1,6 +1,7 @@
import React from 'react';
import { Space, Button, Tooltip } from '@douyinfe/semi-ui';
import { Space, Button } from '@douyinfe/semi-ui';
import { IconUndo, IconRedo } from '@douyinfe/semi-icons';
import { Tooltip } from 'components/tooltip';
import { IconClear } from 'components/icons';
import { Divider } from './components/divider';
import { MediaInsertMenu } from './menus/mediaInsert';

View File

@ -3,7 +3,6 @@ import { Editor } from '@tiptap/core';
import { Button, Dropdown, Popover } from '@douyinfe/semi-ui';
import { IconPlus } from '@douyinfe/semi-icons';
import { Tooltip } from 'components/tooltip';
import { Upload } from './components/upload';
import {
IconDocument,
IconMind,
@ -18,7 +17,6 @@ import {
} from 'components/icons';
import { GridSelect } from 'components/grid-select';
import { isTitleActive } from '../services/isActive';
import { handleFileEvent } from '../services/upload';
export const MediaInsertMenu: React.FC<{ editor: Editor }> = ({ editor }) => {
if (!editor) {