Skip to content

Commit

Permalink
refactor: isBookmarked로 변수명 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
jung2941 committed Feb 20, 2025
1 parent d78c23a commit 8134e4f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/resumeoverview/PDFPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const workerUrl = `https://unpkg.com/pdfjs-dist@3.4.120/build/pdf.worker.min.js`

type PDFPageProps = {
pdfUrl: string;
children?: React.ReactNode; // 피드백 포인트를 받기 위한 children 추가
children?: React.ReactNode;
};

const PDFPage = ({ pdfUrl, children }: PDFPageProps) => {
Expand Down
6 changes: 2 additions & 4 deletions frontend/src/pages/ResumeFeedbackPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,6 @@ function ResumeFeedbackPage() {
if (error) return <ErrorMessage message={error} />;
if (!resumeData) return <div>No resume data available.</div>;

const bookmarked = isBookmarked(resumeId);

return (
<div className="flex flex-col flex-grow ">
<Layout
Expand All @@ -169,12 +167,12 @@ function ResumeFeedbackPage() {
<button
onClick={toggleBookmark}
className={`flex items-center px-6 py-3 rounded-lg ${
bookmarked
isBookmarked(resumeId)
? "bg-yellow-100 text-yellow-900"
: "text-gray-500 hover:bg-gray-50"
}`}
>
{bookmarked ? (
{isBookmarked(resumeId) ? (
<>
<BookmarkMinus className="w-5 h-5 mr-2" />
북마크 제거
Expand Down

0 comments on commit 8134e4f

Please sign in to comment.