mirror of
https://github.com/usememos/memos.git
synced 2025-10-20 19:26:14 +08:00
parent
9f8a0a8dd3
commit
dd529f845a
1 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,5 @@
|
||||||
|
import { useEffect } from "react";
|
||||||
|
import { useTagStore } from "@/store/module";
|
||||||
import { useTranslate } from "@/utils/i18n";
|
import { useTranslate } from "@/utils/i18n";
|
||||||
import MemoEditor from ".";
|
import MemoEditor from ".";
|
||||||
import { generateDialog } from "../Dialog";
|
import { generateDialog } from "../Dialog";
|
||||||
|
@ -9,10 +11,16 @@ interface Props extends DialogProps {
|
||||||
}
|
}
|
||||||
|
|
||||||
const MemoEditorDialog: React.FC<Props> = ({ memoId, relationList, destroy }: Props) => {
|
const MemoEditorDialog: React.FC<Props> = ({ memoId, relationList, destroy }: Props) => {
|
||||||
|
const t = useTranslate();
|
||||||
|
const tagStore = useTagStore();
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
tagStore.fetchTags();
|
||||||
|
}, []);
|
||||||
|
|
||||||
const handleCloseBtnClick = () => {
|
const handleCloseBtnClick = () => {
|
||||||
destroy();
|
destroy();
|
||||||
};
|
};
|
||||||
const t = useTranslate();
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
|
Loading…
Add table
Reference in a new issue