diff --git a/src/app/create/poem/page.tsx b/src/app/create/poem/page.tsx index 6c5b04b..a099a3d 100644 --- a/src/app/create/poem/page.tsx +++ b/src/app/create/poem/page.tsx @@ -55,6 +55,11 @@ export default function CreatePage() { const authors = data?.data; const mutation = { + genTranslate: api.poem.genTranslation.useMutation({ + onSuccess(data) { + setTranslation(data); + }, + }), deletePoem: api.poem.deleteById.useMutation({ onSuccess: async () => { await utils.poem.findById.invalidate({ @@ -316,7 +321,7 @@ export default function CreatePage() {