Skip to content

Commit

Permalink
fix(plate): remove redunadant className (#373)
Browse files Browse the repository at this point in the history
#366

Co-authored-by: Кононенко Артем Игоревич <AIKononenko@alfabank.ru>
  • Loading branch information
Artess999 and Кононенко Артем Игоревич committed Nov 23, 2020
1 parent 8c6e453 commit fdd6b3d
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions packages/plate/src/Component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,13 +145,9 @@ export const Plate = forwardRef<HTMLInputElement, PlateProps>(
{title && <div className={cn(styles.title)}>{title}</div>}
{children && (
<div
className={cn(
styles.content,
{
[styles.isFolded]: isFoldable && isFolded,
},
className,
)}
className={cn(styles.content, {
[styles.isFolded]: isFoldable && isFolded,
})}
>
<div className={cn(styles.contentInner)}>{children}</div>
</div>
Expand Down

0 comments on commit fdd6b3d

Please sign in to comment.