Skip to content

Commit

Permalink
Refactor: Poster 컴포넌트 rank prop 수정
Browse files Browse the repository at this point in the history
- 옵셔널 값으로 수정함
  • Loading branch information
thsk3 committed Oct 1, 2024
1 parent 58ab569 commit 7c9417b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Poster/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ interface PosterProps {
src: string;
width?: number;
height?: number;
rank: number | null;
rank?: number | null;
}

export const Poster = ({ src, width = 100, height = (4 / 3) * width, rank }: PosterProps) => {
export const Poster = ({ src, width = 100, height = (4 / 3) * width, rank = null }: PosterProps) => {
return (
<S.Poster width={width} height={height}>
<img alt="poster" src={src}></img>
Expand Down

0 comments on commit 7c9417b

Please sign in to comment.