Skip to content

Commit e49b78d

Browse files
committed
📦 Allow for custom labels
1 parent 063fd19 commit e49b78d

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/components/HomepageFeatures/index.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@ const AddonDocumentationList = [
1616
This guide will show you how to add even more backpacks to Backpacked using either a resource/data packs or by integrating into a mod. This guide will cover registering new backpacks, creating the models, and setting the challenges to unlock backpacks.
1717
</>
1818
),
19+
action_text: 'View Guide'
1920
},
2021
]
2122

22-
function Documentation({ title, description, link }) {
23+
function Documentation({ title, description, link, action_text }) {
2324
return (
24-
<div className={clsx('col col--6')}>
25+
<div className={clsx('col col--6 margin-bottom--lg')}>
2526
<div class="card-demo">
2627
<div class="card shadow--lw">
2728
<div class="card__header">
@@ -32,7 +33,7 @@ function Documentation({ title, description, link }) {
3233
<Link
3334
className="button button--secondary button--lg button--block"
3435
to={link}>
35-
View Guide
36+
{action_text}
3637
</Link>
3738
</div>
3839
</div>
@@ -46,7 +47,7 @@ export default function HomepageFeatures() {
4647
<div>
4748
<section className={styles.features}>
4849
<div className="container">
49-
<Heading as="h1">📦 Create an Addon</Heading>
50+
<Heading as="h1">📦 Addons</Heading>
5051
<div className="row">
5152
{AddonDocumentationList.map((props, idx) => (
5253
<Documentation key={idx} {...props} />

0 commit comments

Comments
 (0)