Skip to content

Commit

Permalink
Refactor: Poster 컴포넌트 rank prop 수정
Browse files Browse the repository at this point in the history
- 옵셔널 값으로 수정함
  • Loading branch information
juriurj committed Sep 30, 2024
1 parent 77abe42 commit 5252a06
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 5252a06

Please sign in to comment.