-
Notifications
You must be signed in to change notification settings - Fork 862
admin-ui: Add Upgrade to Pro menu item for free users #47418
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
base: trunk
Are you sure you want to change the base?
Changes from 1 commit
1cbc66a
cd60b97
9c736c8
fad3e8f
36d5cea
0a1cc55
7259e4d
d611f0e
a21d087
649069d
10b8090
84fc4af
be32c94
ebdfb8e
3f16dcc
657b5d6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
Changed the variant prop in the BackupNowButton component from 'primary', 'secondary', 'tertiary' to 'solid', 'outline', 'minimal', 'unstyled' for improved flexibility in button styling.
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -107,7 +107,7 @@ BackupNowButton.propTypes = { | |
| children: PropTypes.node, | ||
| tooltipText: PropTypes.string, | ||
| tracksEventName: PropTypes.string, | ||
| variant: PropTypes.oneOf( [ 'primary', 'secondary', 'tertiary' ] ), | ||
| variant: PropTypes.oneOf( [ 'solid', 'outline', 'minimal', 'unstyled' ] ), | ||
| onClick: PropTypes.func, | ||
| }; | ||
|
Comment on lines
106
to
112
|
||
|
|
||
|
|
||
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.
The
variantPropTypes were changed to[ 'solid', 'outline', 'minimal', 'unstyled' ], but other code in this package already passesvariant="primary"/variant="tertiary"to buttons. This will produce PropTypes warnings and suggests the accepted values don't match actual usage. Either expand the allowed values to include the variants you use in this repo, or update the callers and confirm the WPButtonvariant API supports the new set.