Skip to content

Commit

Permalink
Update home to use new cta card interface - variant prop not size
Browse files Browse the repository at this point in the history
  • Loading branch information
SmileyJames committed Jul 17, 2021
1 parent aaf8ab3 commit 4dd1e0b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/src/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,13 @@ const Home = ({ stopped }) => {
({ name, image, description }, index) => (
<CallToActionCard
key={index}
size={index === 0 ? 2 : 1}
variant={index === 0 ? "primary" : "secondary"}
headingText={name}
imageSrc={image.src}
imageAlt={image.alt}
bodyText={description}
onAction={() => onNewGame(index)}
buttonLabel={`Start ${name}`}
variant="secondary"
/>
)
)
Expand Down

0 comments on commit 4dd1e0b

Please sign in to comment.