Skip to content

Commit

Permalink
chore: #11 variant props 옵셔널로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
leeminhee119 committed Jul 8, 2024
1 parent 82cafb6 commit 148b0ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/component/common/Card/ListItemCard.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { css } from "@emotion/react";

type ListItemCardProps = {
variant: "default" | "theme";
variant?: "default" | "theme";
height?: string;
borderRadius?: string;
children: React.ReactNode;
};

const ListItemCard = ({ variant, height = "5rem", borderRadius = ".8rem", children }: ListItemCardProps) => {
const ListItemCard = ({ variant = "default", height = "5rem", borderRadius = ".8rem", children }: ListItemCardProps) => {
return (
<div
css={css`
Expand All @@ -18,7 +18,7 @@ const ListItemCard = ({ variant, height = "5rem", borderRadius = ".8rem", childr
height: ${height};
border-radius: ${borderRadius};
color: ${variant === "default" ? "#212529" : "#fff"};
transition: 0.4s all;
transition: 0.4s all;
`}
>
{children}
Expand Down

0 comments on commit 148b0ae

Please sign in to comment.