Skip to content

Commit

Permalink
fix: tabs rendering undefined value as className (#512)
Browse files Browse the repository at this point in the history
* fix: tabs rendering undefined value as className

* fix: formatting
  • Loading branch information
andyesp authored Feb 28, 2024
1 parent fc83d24 commit 5d10f9d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/components/Tabs/Tabs.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import * as React from 'react'
import classNames from 'classnames'
import { Mobile, NotMobile } from '../Media'
import { Container } from '../Container/Container'
import './Tabs.css'
Expand Down Expand Up @@ -40,7 +41,12 @@ export class Tabs extends React.PureComponent<TabsProps> {
const { children, isFullscreen, onClick, className } = this.props
return (
<div
className={`dcl tabs ${isFullscreen ? 'fullscreen' : ''} ${className}`}
className={classNames(
'dcl',
'tabs',
isFullscreen && 'fullscreen',
className
)}
onClick={onClick}
>
<NotMobile>
Expand Down

0 comments on commit 5d10f9d

Please sign in to comment.