Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete React.FC in sample code because of code-conventions change #12072

Merged
merged 3 commits into from
Feb 1, 2024

Conversation

HiroyukiNaito
Copy link
Contributor

Delete React.FC in sample code because of code-conventions change

Description

Delete React.FC in sample code because of code-conventions change
https://github.com/ethereum/ethereum-org-website/blob/dev/docs/code-conventions.md#directly-annotate-the-props-object

Related Issue

Related PR
#12014

Copy link

netlify bot commented Jan 31, 2024

Deploy Preview for ethereumorg ready!

Name Link
🔨 Latest commit d178225
🔍 Latest deploy log https://app.netlify.com/sites/ethereumorg/deploys/65ba1fd39de4330008e72f82
😎 Deploy Preview https://deploy-preview-12072--ethereumorg.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@TylerAPfledderer
Copy link
Contributor

TylerAPfledderer commented Jan 31, 2024

Thank you, @HiroyukiNaito!

Noting here that I have a related PR up doing sweeping syntax updates for this exact change.
#12014

@HiroyukiNaito
Copy link
Contributor Author

HiroyukiNaito commented Feb 1, 2024

@TylerAPfledderer
Thank you for the notes.
I updated hinting regarding your codes through your PR.
I deleted prop argument simply (it looks don't use props in sample code) in the sample code for deleting React.FC at this time.
I'm a newbie to Next.js and Typescript, so support is always welcome if any improvements.

Copy link
Member

@corwintines corwintines left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @HiroyukiNaito!

@corwintines corwintines merged commit 1004745 into ethereum:dev Feb 1, 2024
6 checks passed
This was referenced Feb 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants