diff --git a/src/pageLayout/Epigram/AddEpigram.tsx b/src/pageLayout/Epigram/AddEpigram.tsx
index 97391b8f..c965f683 100644
--- a/src/pageLayout/Epigram/AddEpigram.tsx
+++ b/src/pageLayout/Epigram/AddEpigram.tsx
@@ -1,18 +1,18 @@
import React, { KeyboardEvent, useCallback, useEffect, useState } from 'react';
import { useForm } from 'react-hook-form';
import { zodResolver } from '@hookform/resolvers/zod';
-import Header from '@/components/Header/Header';
+import NewHeader from '@/components/Header/NewHeader';
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
import { RadioGroup, RadioGroupItem } from '@/components/ui/radio-group';
import { Textarea } from '@/components/ui/textarea';
import { Form, FormField, FormItem, FormLabel, FormControl, FormMessage } from '@/components/ui/form';
import { AddEpigramFormSchema, AddEpigramFormType } from '@/schema/addEpigram';
-import useAddEpigram from '@/hooks/epigramQueryHook';
import { useRouter } from 'next/router';
import { AlertDialog, AlertDialogAction, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle } from '@/components/ui/alert-dialog';
import useTagManagement from '@/hooks/useTagManagementHook';
import { useAuthorSelection } from '@/hooks/useAuthorSelectionHook';
+import useAddEpigram from '@/hooks/useAddEpigramHook';
function AddEpigram() {
const router = useRouter();
@@ -106,7 +106,7 @@ function AddEpigram() {
return (
<>
-
);
diff --git a/src/pageLayout/Epigram/EpigramFigure.tsx b/src/pageLayout/Epigram/EpigramFigure.tsx
index 72447974..bd7dc5b8 100644
--- a/src/pageLayout/Epigram/EpigramFigure.tsx
+++ b/src/pageLayout/Epigram/EpigramFigure.tsx
@@ -4,10 +4,17 @@ import { EpigramFigureProps } from '@/types/epigram.types';
import useEpigramLike from '@/hooks/useEpigramLike';
import { Button } from '@/components/ui/button';
import Link from 'next/link';
+import { useQuery } from '@tanstack/react-query';
+import queries from '@/apis/queries';
function EpigramFigure({ epigram, currentUserId }: EpigramFigureProps) {
const isAuthor = currentUserId === epigram.writerId;
- const { likeCount, handleLikeClick, isPending } = useEpigramLike(epigram);
+ const { handleLikeClick } = useEpigramLike(epigram);
+
+ const { data: latestEpigram } = useQuery({
+ ...queries.epigram.getEpigram({ id: epigram.id }),
+ initialData: epigram,
+ });
return (
@@ -27,10 +34,10 @@ function EpigramFigure({ epigram, currentUserId }: EpigramFigureProps) {
-{epigram.author}-
-