Skip to content

Commit

Permalink
[Website] Fix "undefined" as className (#1870)
Browse files Browse the repository at this point in the history
## Motivation for the change, related issues

I found "undefined" as a class name in the rendered DOM code.

![image](https://github.com/user-attachments/assets/34d9e109-5c1f-45ab-86e1-1d653c45b1f3)


## Implementation details

Remove potentially empty prop from string chain to classNames() method.

## Testing Instructions (or ideally a Blueprint)
Just open playground. It's on the main page as a wrapper.


Ps. Sorry for the small stuff. I'm trying to find my way around the code
:)
  • Loading branch information
ajotka authored Oct 9, 2024
1 parent bacc516 commit e969da7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ export default function BrowserChrome({
const addressBarClass = classNames(css.addressBarSlot, {
[css.isHidden]: !showAddressBar,
});
const wrapperClass = classNames(css.wrapper, css.hasFullSizeWindow);
const wrapperClass = classNames(css.wrapper, css.hasFullSizeWindow, className);

return (
<div
className={`${wrapperClass} ${className}`}
className={wrapperClass}
data-cy="simulated-browser"
>
<div className={`${css.window} browser-chrome-window`}>
Expand Down

0 comments on commit e969da7

Please sign in to comment.