Skip to content

Commit

Permalink
Modify: 짤 카트 컴포넌트에 className 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
Kim-Jaemin420 committed Mar 4, 2024
1 parent d1bc17a commit eebf37b
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/components/common/ZzalCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,19 @@ interface ZzalCardProps {
alt: string;
hasAnimation?: boolean;
width?: number | string;
className?: string;
}

const ZzalCard = ({ children, src, alt, width = 72, hasAnimation = true }: ZzalCardProps) => {
const ZzalCard = ({
children,
src,
alt,
width = 72,
hasAnimation = true,
className,
}: ZzalCardProps) => {
return (
<div className={`group relative w-${width} rounded-lg bg-base-100 shadow-xl`}>
<div className={cn(`group relative w-${width} rounded-lg bg-base-100 shadow-xl`, className)}>
<div className="button-container absolute right-2 top-1 z-10 w-fit opacity-0 transition-opacity duration-500 ease-in-out group-hover:opacity-100">
{children}
</div>
Expand Down

0 comments on commit eebf37b

Please sign in to comment.