Skip to content

Commit

Permalink
Add CardContent component
Browse files Browse the repository at this point in the history
  • Loading branch information
diogomateus committed Oct 25, 2023
1 parent 745adc1 commit da4853f
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions src/lib/components/card/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,7 @@ export interface CardProps {
actionIcon?: ReactNode;
}

/*
@TODO:
Allow action
- render icon util
*/

const renderContent = ({
const CardContent = ({
children,
classNames,
density = 'balanced',
Expand Down Expand Up @@ -136,12 +129,12 @@ const Card = (props: CardProps) => {
onClick={onClick}
type="button"
>
{renderContent(props)}
<CardContent {...props} />
</button>
)
}

return renderContent(props);
return <CardContent {...props} />;
}

export { Card };

0 comments on commit da4853f

Please sign in to comment.