Skip to content

Commit

Permalink
Diego's review
Browse files Browse the repository at this point in the history
  • Loading branch information
danilo-leal committed Sep 15, 2023
1 parent efa2a82 commit c5ae2a2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions docs/src/components/action/InfoCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,14 @@ interface InfoCardProps {
title: string;
description: string;
link?: string;
linkable?: boolean;
}

export default function InfoCard({ icon, title, description, link, linkable }: InfoCardProps) {
export default function InfoCard({ icon, title, description, link }: InfoCardProps) {
return (
<Paper
component={linkable ? Link : 'div'}
component={link ? Link : 'div'}
href={link}
noLinkStyle={linkable}
noLinkStyle={Boolean(link)}
variant="outlined"
sx={(theme) => ({
p: 3.5,
Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/productBaseUI/BaseUISummary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default function BaseUISummary() {
<Grid container spacing={3}>
{content.map(({ icon, title, description, link }) => (
<Grid key={title} item xs={12} md={4}>
<InfoCard link={link} linkable title={title} icon={icon} description={description} />
<InfoCard link={link} title={title} icon={icon} description={description} />
</Grid>
))}
</Grid>
Expand Down

0 comments on commit c5ae2a2

Please sign in to comment.