Skip to content

Commit

Permalink
fix : 시험 게시판 뿐 아닌 모든 게시판 파일 다운로드 댓글 작성 필수 문구 제공
Browse files Browse the repository at this point in the history
  • Loading branch information
publdaze committed Oct 19, 2023
1 parent 9b8eb43 commit b1b861c
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/pages/board/BoardView/Section/PostSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,9 @@ const PostSection = ({ postId, post, password }: PostSectionProps) => {
</Button>
{fileOpen && (
<div className="mb-10 mt-2 space-y-2 text-pointBlue">
{post.categoryName === '시험게시판' && (
<Typography variant="small" className="block text-subOrange">
*시험 게시판 파일 다운로드를 위해서는 댓글 작성이 필요합니다.
</Typography>
)}
<Typography variant="small" className="block text-subOrange">
*파일 다운로드를 위해서는 댓글 작성이 필요합니다.
</Typography>
{files && <FileViewer files={files} onRowClick={handleDownloadFileClick} />}
</div>
)}
Expand Down

0 comments on commit b1b861c

Please sign in to comment.