GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: changed the button props type to enum by ashmitjsg · Pull Request #2760 · asyncapi/website

Conversation

@ashmitjsg

@ashmitjsg ashmitjsg commented Mar 12, 2024

Copy link
Copy Markdown
Contributor

Description
Changed the button props type to enum.

Related issue(s)

#2636

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@ashmitjsg
changed button props type to enum
eeb141d
@ashmitjsg
ashmitjsg requested review from Mayaleeeee, akshatnema, anshgoyalevil, asyncapi-bot-eve, derberg and magicmatatjahu as code owners March 12, 2024 09:26
@netlify

netlify Bot commented Mar 12, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

✅ Deploy Preview for asyncapi-website ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 912c503
🔍 Latest deploy log https://app.netlify.com/sites/asyncapi-website/deploys/65f1dab51efa570008a9c388
😎 Deploy Preview https://deploy-preview-2760--asyncapi-website.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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ashmitjsg
fix lint issue
6e81248
anshgoyalevil
anshgoyalevil reviewed Mar 13, 2024
View reviewed changes
Comment thread components/buttons/Button.tsx Resolved

Uh oh!

There was an error while loading. Please reload this page.

anshgoyalevil
anshgoyalevil reviewed Mar 13, 2024
View reviewed changes
Comment thread components/buttons/Button.tsx Outdated
Comment on lines +4 to +7
export enum ButtonSizeType {
small = 'small',
default = 'default',
}

@anshgoyalevil anshgoyalevil Mar 13, 2024

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Its name should be ButtonSize as it is not representing a type but is a size variant instead, which is self-explanatory.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@ashmitjsg ashmitjsg Mar 13, 2024

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Done

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
anshgoyalevil
anshgoyalevil reviewed Mar 13, 2024
View reviewed changes
Comment thread components/buttons/Button.tsx Resolved

Uh oh!

There was an error while loading. Please reload this page.

ashmitjsg added 4 commits March 13, 2024 19:25
@ashmitjsg
moved button enums to a seperate type file
e1f8a11
@ashmitjsg
fixed lint issue
eea6ac4
@ashmitjsg
fixed build error
c118b46
@ashmitjsg
fixed build errors
45acf47
@ashmitjsg
ashmitjsg requested a review from anshgoyalevil March 13, 2024 15:01
akshatnema
akshatnema requested changes Mar 13, 2024
View reviewed changes
Comment thread types/components/buttons/ButtonPropsType.ts Outdated
@@ -0,0 +1,15 @@
export enum ButtonSize {
small = 'small',

@akshatnema akshatnema Mar 13, 2024

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Suggested change
small = 'small',
SMALL = 'small',

define the name of the enums in capital letters.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@ashmitjsg ashmitjsg Mar 13, 2024

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Done

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
ashmitjsg and others added 2 commits March 13, 2024 22:25
@ashmitjsg
capitalised enum names
51f7f0b
@ashmitjsg
Merge branch 'migrate-ts' into ag-ts-buttons
912c503
anshgoyalevil
anshgoyalevil approved these changes Mar 13, 2024
View reviewed changes
@anshgoyalevil

anshgoyalevil commented Mar 13, 2024

Copy link
Copy Markdown
Member

/rtm

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@asyncapi-bot asyncapi-bot added the ready-to-merge label Mar 13, 2024
@anshgoyalevil
anshgoyalevil merged commit c5328a1 into asyncapi:migrate-ts Mar 13, 2024
@ashmitjsg
ashmitjsg deleted the ag-ts-buttons branch March 13, 2024 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@akshatnema akshatnema akshatnema requested changes
@anshgoyalevil anshgoyalevil anshgoyalevil approved these changes
@derberg derberg Awaiting requested review from derberg
@magicmatatjahu magicmatatjahu Awaiting requested review from magicmatatjahu
@Mayaleeeee Mayaleeeee Awaiting requested review from Mayaleeeee
@asyncapi-bot-eve asyncapi-bot-eve Awaiting requested review from asyncapi-bot-eve

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

ready-to-merge

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@ashmitjsg @anshgoyalevil @akshatnema @asyncapi-bot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.