Skip to content

Commit

Permalink
Merge pull request #148 from fastcampus-711/develop
Browse files Browse the repository at this point in the history
feat: 민원 게시글 비밀글 아이콘
  • Loading branch information
alreadyme24 authored Jun 12, 2024
2 parents f926932 + a358b88 commit 5e793b4
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
15 changes: 15 additions & 0 deletions components/ComplainItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import Link from "next/link"
import NewTag from "./tag/NewTag"
import imgIcon from "@/public/icon/img.svg"
import PopularTag from "./tag/PopularTag"
import SecretIcon from "@/public/icon/secret.svg"
import Image from "next/image"

type FreeBoardItemProps = {
Expand Down Expand Up @@ -75,6 +76,20 @@ export default function ComplainItem({
) : (
""
)}
{visible ? (
""
): (
<span className="pr-1">
<Image
src={SecretIcon.src}
alt="비밀글아이콘"
width={0}
height={0}
sizes="100vw"
style={{ width: "24px", height: "auto" }}
/>
</span>
)}
<Link
className="mr-2"
href={visible ? `/complains/${id}` : "#"}
Expand Down
5 changes: 5 additions & 0 deletions public/icon/secret.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5e793b4

Please sign in to comment.