Skip to content

Commit

Permalink
move CardListItem in CardList component (MetaMask#769)
Browse files Browse the repository at this point in the history
  • Loading branch information
ziad-saab authored May 23, 2023
1 parent 81f433d commit b7ef568
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ export interface CardItem {
icon?: string;
}

interface CardProps {
interface CardListItemProps {
item: CardItem;
}

export default function Card({ item }: CardProps): JSX.Element {
export default function CardListItem({ item }: CardListItemProps): JSX.Element {
const cardContent = (
<>
{item.title && (
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions src/components/CardList/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import Card, { CardItem } from "@site/src/components/Card";
import CardListItem, { CardItem } from "./CardListItem";

interface CardListProps {
items: CardItem[];
Expand All @@ -12,7 +12,7 @@ export default function CardList(props: CardListProps): JSX.Element {
<section className="row">
{items.map((item, index) => (
<article key={index} className="col col--6 margin-bottom--lg">
<Card item={item} />
<CardListItem item={item} />
</article>
))}
</section>
Expand Down

0 comments on commit b7ef568

Please sign in to comment.