Skip to content

Commit 19bfb09

Browse files
committed
Move class to parent
1 parent c2b822d commit 19bfb09

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/block.tsx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -420,20 +420,16 @@ export const Block: React.FC<Block> = props => {
420420
<div
421421
className={classNames(
422422
"notion-callout",
423+
blockValue.format.block_color &&
424+
`notion-${blockValue.format.block_color}`,
423425
blockValue.format.block_color &&
424426
`notion-${blockValue.format.block_color}_co`
425427
)}
426428
>
427429
<div>
428430
<PageIcon block={block} mapImageUrl={mapImageUrl} />
429431
</div>
430-
<div
431-
className={classNames(
432-
"notion-callout-text",
433-
blockValue.format.block_color &&
434-
`notion-${blockValue.format.block_color}`
435-
)}
436-
>
432+
<div className="notion-callout-text">
437433
{renderChildText(blockValue.properties.title)}
438434
</div>
439435
</div>

0 commit comments

Comments
 (0)