8000 fix(site): ensure Error Boundary catches render errors correctly by Parkreiner · Pull Request #15963 · coder/coder · GitHub
[go: up one dir, main page]

Skip to content

fix(site): ensure Error Boundary catches render errors correctly #15963

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
merged 11 commits into from
Jan 3, 2025
Prev Previous commit
Next Next commit
fix: make sure className is passed in correctly
  • Loading branch information
Parkreiner committed Dec 26, 2024
commit d2c5927c457279de1db9f6fc3f6cbb5c6366b677
2 changes: 1 addition & 1 deletion site/src/components/Button/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const Button: FC<ButtonProps> = forwardRef<
<Comp
ref={ref}
{...props}
className={cn(buttonVariants({ variant, size, className }))}
className={cn(buttonVariants({ variant, size }), className)}
Copy link
Member Author

Choose a reason for hiding this comment

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

We had a typo where we were accidentally passing the consumer class name into CVA, instead of passing it directly to cn

type={
props.type === undefined && Comp === "button" ? "button" : props.type
}
Expand Down
Loading
0