Skip to content

Commit a358561

Browse files
authored
feat: pass global vars (#104)
1 parent a33ee27 commit a358561

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

extension/README.md.args.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
export const skipQuickStart = true;
22

3-
export const extraContents = `# Example Extension (ERC-20)
3+
export const extraContents = ({ solidityFramework }) => `# Example Extension (ERC-20)
44
55
## Checkpoint 0: 📦 Environment 📚
66
7-
> Start your local network (a local instance of a blockchain):
7+
> Start your local ${solidityFramework} network (a local instance of a blockchain):
88
99
\`\`\`
1010
yarn chain
@@ -26,4 +26,4 @@ yarn start
2626
`;
2727

2828
// If this is passed it will override the full content of the README file
29-
export const fullContentOverride = ""
29+
export const fullContentOverride = "";

extension/packages/nextjs/app/page.tsx.args.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
export const preContent = `import { RocketLaunchIcon } from '@heroicons/react/24/outline'`;
22

3-
export const description = `
3+
export const description = ({ solidityFramework }) => `
44
<div className="flex mt-4 bg-green-100 gap-2 p-4 justify-center items-center rounded-lg">
55
<RocketLaunchIcon className="h-8 w-8 fill-green-100" />
6-
<p>Your description block</p>
6+
<p>ERC-20 extension example using ${solidityFramework}</p>
77
</div>
88
`;
99

0 commit comments

Comments
 (0)