Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fe-54♻️상세페이지 리팩토링 #131

Merged
merged 3 commits into from
Jul 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/components/epigram/EditEpigram.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,15 +115,15 @@ function EditEpigram({ epigram }: EditEpigramProps) {
const handleAlertClose = () => {
setIsAlertOpen(false);
if (alertContent.title === '수정 완료') {
router.push(`/epigram/${epigram.id}`);
router.push(`/epigrams/${epigram.id}`);
}
};

return (
<>
<Header
icon='back'
routerPage={`/epigram/${epigram.id}`}
routerPage={`/epigrams/${epigram.id}`}
isLogo
insteadOfLogo='에피그램 수정'
isProfileIcon
Expand Down
2 changes: 1 addition & 1 deletion src/components/epigram/MoreOptionMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function MoreOptionsMenu({ epigram }: MoreOptionsMenuProps) {
});

const handleEditClick = () => {
router.push(`/epigram/${epigram}/edit`);
router.push(`/epigrams/${epigram}/edit`);
};

const handleDeleteClick = () => {
Expand Down
2 changes: 1 addition & 1 deletion src/pageLayout/Epigram/AddEpigram.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function AddEpigram() {
const handleAlertClose = () => {
setIsAlertOpen(false);
if (alertContent.title === '등록 완료') {
router.push(`/epigram/${addEpigramMutation.data?.id}`);
router.push(`/epigrams/${addEpigramMutation.data?.id}`);
}
};

Expand Down
3 changes: 2 additions & 1 deletion src/pageLayout/Epigram/EpigramComment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ function EpigramComment({ epigramId, currentUserId, userImage }: EpigramCommentP
};

return (
<div className='bg-slate-100 flex justify-center h-screen'>
// NOTE: 댓글부분 height 수정
<div className='bg-slate-100 flex justify-center'>
<div className='w-80 md:w-96 lg:w-[640px] pt-6 lg:pt-12'>
<h3 className='text-base lg:text-xl font-semibold'>댓글 작성</h3>
<div className={`flex flex-col gap-4 lg:gap-6 ${paddingStyles.sm} ${paddingStyles.md} ${paddingStyles.lg}`}>
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function DetailPage() {

return (
<div className='flex flex-col '>
<Header icon='search' routerPage='/search' isLogo insteadOfLogo='' isProfileIcon isShareIcon={false} isButton={false} textInButton='' disabled={false} onClick={() => {}} />;
<Header icon='search' routerPage='/search' isLogo insteadOfLogo='' isProfileIcon isShareIcon={false} isButton={false} textInButton='' disabled={false} onClick={() => {}} />
<EpigramFigure epigram={epigram} currentUserId={userData?.id} />
<EpigramComment epigramId={epigram.id} currentUserId={userData?.id} userImage={userData?.image} />
</div>
Expand Down
Loading