diff --git a/packages/client/src/tiptap/editor/menus/flow/modal.tsx b/packages/client/src/tiptap/editor/menus/flow/modal.tsx index 2baa9863..e1cd8fa5 100644 --- a/packages/client/src/tiptap/editor/menus/flow/modal.tsx +++ b/packages/client/src/tiptap/editor/menus/flow/modal.tsx @@ -2,11 +2,13 @@ import { useEffect, useRef, useState } from 'react'; import { Modal } from '@douyinfe/semi-ui'; import { Editor } from 'tiptap/editor'; import { useToggle } from 'hooks/use-toggle'; +import { Theme, useTheme } from 'hooks/use-theme'; import { OPEN_FLOW_SETTING_MODAL, subject, cancelSubject } from '../_event'; type IProps = { editor: Editor }; export const FlowSettingModal: React.FC = ({ editor }) => { + const { theme } = useTheme(); const $iframe = useRef(); const [initialData, setInitialData] = useState(''); const [visible, toggleVisible] = useToggle(false); @@ -53,7 +55,9 @@ export const FlowSettingModal: React.FC = ({ editor }) => {