-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Show licenseKey details on WebRenderModal from Pro platform #6255
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: main
Are you sure you want to change the base?
Conversation
| return ( | ||
| <div style={textStyle}> | ||
| {isLoading && 'Validating license key...'} | ||
| {validation && !validation.isValid && '⚠️ Invalid license key'} |
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.
Use ValidationMessage component to display a warning triangle
| setIsLoading(false); | ||
| }) | ||
| .catch(() => { | ||
| setValidation(null); |
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.
Let's handle the network failure as well:
Could not validate license key: ${error.message}
| usage | ||
| </a> | ||
| </div> | ||
| {validation.hasActiveSubscription && ( |
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.
Handle the negative case as well: No active company license!
fixes #6181