starknet-react icon indicating copy to clipboard operation
starknet-react copied to clipboard

Add source code snippet to demo pages

Open rsodre opened this issue 1 year ago • 3 comments

Each demo page should have the source code available in a tab or something. At least a link to the demo page in the repository, so we can see how that feature works.

rsodre avatar Oct 21 '24 15:10 rsodre

@rsodre please is this an open issue

ooochoche avatar Oct 21 '24 15:10 ooochoche

Agree with this. We should have a link to GitHub (so that it's always up-to-date) + a description of what the demo is showing.

fracek avatar Oct 23 '24 12:10 fracek

@fracek can I work on this?

ooochoche avatar Oct 23 '24 12:10 ooochoche

Hey @ooochoche, yes you can work on it.

Follow the following format please:

<Brief description of the demo>

[Link to GitHub](https://github.com/apibara/starknet-react/blob/main/docs/components/demo/<demo-name>.tsx)

For example:

This demo shows how to access the currently connected account and its address.

[Link to GitHub](https://github.com/apibara/starknet-react/blob/main/docs/components/demo/account.tsx)

fracek avatar Oct 29 '24 12:10 fracek

@fracek Thank you. I will get on it.

ooochoche avatar Oct 29 '24 12:10 ooochoche

@fracek I want to submit a PR now. Do I need to be assigned first?

ooochoche avatar Oct 30 '24 18:10 ooochoche

You can open a PR and I will review it. No need to have the issue assigned.

fracek avatar Oct 30 '24 19:10 fracek