Skip to content

Commit

Permalink
fix(react): fix studiopanel className setting (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
programmerwy committed Dec 2, 2021
1 parent a9943dd commit a279713
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions packages/react/src/panels/StudioPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,12 @@ const StudioPanelInternal: React.FC<IStudioPanelProps> = ({
}) => {
const prefix = usePrefix('main-panel')
const position = usePosition()
const classNameBase = cls('root', position, props.className)
if (logo || actions) {
return (
<div
{...props}
className={cls(
prefix + '-container',
'root',
position,
props.className
)}
className={cls(`${prefix}-container`, classNameBase)}
>
<div className={prefix + '-header'}>
<div className={prefix + '-header-logo'}>{logo}</div>
Expand All @@ -39,7 +35,7 @@ const StudioPanelInternal: React.FC<IStudioPanelProps> = ({
)
}
return (
<div {...props} className={cls(prefix, 'root', position)}>
<div {...props} className={cls(prefix, classNameBase)}>
{props.children}
</div>
)
Expand Down

0 comments on commit a279713

Please sign in to comment.