-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
ref(js): Factor button functionality #91763
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
Merged
evanpurkhiser
merged 1 commit into
master
from
evanpurkhiser/ref-js-factor-button-functionality
May 20, 2025
Merged
ref(js): Factor button functionality #91763
evanpurkhiser
merged 1 commit into
master
from
evanpurkhiser/ref-js-factor-button-functionality
May 20, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
d28bc1c
to
4a6ad58
Compare
TkDodo
reviewed
May 19, 2025
- Move `useButtonFunctionality` into it's own module, keeping index.tsx specifc to JUST what is required to render the Button, and not sharing anything with linkButton - Move common styles out of the index module into styles.tsx, renames index.chonk to styles.chonk as well. - Move common types into types.tsx - Renames `getChonkButtonStyles` to `DO_NOT_USE_getChonkButtonStyles` to match the `DO_NOT_USE_getButtonStyles`
4a6ad58
to
d244645
Compare
evanpurkhiser
commented
May 19, 2025
evanpurkhiser
commented
May 19, 2025
} | ||
|
||
export type ButtonProps = ButtonPropsWithoutAriaLabel | ButtonPropsWithAriaLabel; | ||
export type {ButtonProps}; |
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.
Re-export as the canonical place to get these props
TkDodo
approved these changes
May 20, 2025
jan-auer
added a commit
that referenced
this pull request
May 20, 2025
* master: (58 commits) link: cleanup link (#91687) ref: create project_id index for organizationonboardingtask (#91918) storybook: smaller last edited (#91875) issues: fix chonk stacktrace alignment (#91891) alert: drop custom alert (#91892) insights: fix bar height (#91895) ref(span-buffer): Move max-memory-percentage to right CLI (#91924) ref(js): Factor button functionality (#91763) tests(resolve_groups): Clean up the tests (#91779) ref(span-buffer): Add backpressure (#91707) fix(nextjs-insights): project id is not passed to explore link (#91920) fix(crons): Floor seconds / microsecond on recorded dateClock (#91890) fix(uptime): Fix bug with the uptime_checks dataset in the events endpoint (#91824) ref: add state-only migration to reflect existing indexes in prod (#91901) ref: remove unnecssary metaclass (#91906) fix(stats): use data category title name (#91913) feat(issues): Add success messages to some actions (#91899) test(taskworker): Lower exec time (#91907) chore(aci): manually add spans for delayed workflow processing (#91908) chore(aci): remove uses of WorkflowFireHistory rollout columns (#91904) ...
andrewshie-sentry
pushed a commit
that referenced
this pull request
May 20, 2025
- Move `useButtonFunctionality` into it's own module, keeping index.tsx specifc to JUST what is required to render the Button, and not sharing anything with linkButton - Move common styles out of the index module into styles.tsx, renames index.chonk to styles.chonk as well. - Move common types into types.tsx - Renames `getChonkButtonStyles` to `DO_NOT_USE_getChonkButtonStyles` to match the `DO_NOT_USE_getButtonStyles`
Suspect IssuesThis pull request was deployed and Sentry observed the following issues:
Did you find this useful? React with a 👍 or 👎 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Move
useButtonFunctionality
into it's own module, keeping index.tsxspecifc to JUST what is required to render the Button, and not sharing
anything with linkButton
Move common styles out of the index module into styles.tsx, renames
index.chonk to styles.chonk as well.
Move common types into types.tsx
Renames
getChonkButtonStyles
toDO_NOT_USE_getChonkButtonStyles
tomatch the
DO_NOT_USE_getButtonStyles