Skip to content

Commit 0ff3a3a

Browse files
committed
tidy
1 parent 4f3070b commit 0ff3a3a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/components/Card.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import styles from "./card.module.css";
66

77
export type CardItem = {
88
title: string;
9-
subtitle: string;
9+
subtitle?: string;
1010
link: string;
1111
description: JSX.Element;
1212
};
@@ -18,7 +18,7 @@ export default function Card({ title, subtitle, link, description }: CardItem) {
1818
<div className="card__header">
1919
<span>
2020
<Heading as="h3">{title}</Heading>
21-
<Heading as="h4">{subtitle}</Heading>
21+
{subtitle && <Heading as="h4">{subtitle}</Heading>}
2222
</span>
2323
</div>
2424
<div className={clsx(styles.cardBody)}>{description}</div>

src/components/CardSection.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ import styles from "./cardsection.module.css";
66
const CardList: CardItem[] = [
77
{
88
title: "Wallet",
9-
subtitle: "Integrate with the MetaMask wallet",
9+
subtitle: "Integrate with MetaMask Wallet",
1010
link: "/wallet",
1111
description: (
1212
<>
13-
Interact with your users&apos; via the MetaMask wallet.
13+
Interact with your users&apos; via the MetaMask Wallet API.
1414
</>
1515
),
1616
},
@@ -30,7 +30,7 @@ const CardList: CardItem[] = [
3030
link: "/snaps",
3131
description: (
3232
<>
33-
Extend the functionality of MetaMask with custom networks, account types, APIs, and more.
33+
Extend the functionality with custom networks, account types, APIs, and more.
3434
</>
3535
),
3636
},

0 commit comments

Comments
 (0)