-
Notifications
You must be signed in to change notification settings - Fork 71
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
feat(hub): add separate protocol for actor inspect #1946
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,6 +75,8 @@ const Button = React.forwardRef<HTMLButtonElement, ButtonProps>( | |
) => { | ||
const C = asChild ? Slot : "button"; | ||
|
||
const isIcon = size?.includes("icon"); | ||
|
||
return ( | ||
<C | ||
className={cn( | ||
|
@@ -93,9 +95,7 @@ const Button = React.forwardRef<HTMLButtonElement, ButtonProps>( | |
) : startIcon ? ( | ||
React.cloneElement(startIcon, startIcon.props) | ||
) : null} | ||
{!size?.includes("icon") && isLoading ? null : ( | ||
<Slottable>{children}</Slottable> | ||
)} | ||
{isIcon && isLoading ? null : <Slottable>{children}</Slottable>} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. logic: This change may have introduced a regression. Previously, children were hidden for non-icon buttons during loading ( |
||
{endIcon ? React.cloneElement(endIcon, endIcon.props) : null} | ||
</C> | ||
); | ||
|
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.
style: endpoint prop is passed before spreading ...props which could lead to endpoint being overridden if it exists in props