Skip to content

Commit 03b5144

Browse files
committed
Fix prettier linting issues from #563
1 parent 3e8b41b commit 03b5144

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/react-notion-x/src/third-party/collection-card.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ export const CollectionCard: React.FC<CollectionCardProps> = ({
2929
} = ctx
3030
let coverContent = null
3131

32-
const { page_cover_position = 0.5, card_cover_position = 0.5 } = block.format || {}
32+
const { page_cover_position = 0.5, card_cover_position = 0.5 } =
33+
block.format || {}
3334
const coverPosition = (1 - page_cover_position) * 100
3435
const cardCoverPosition = (1 - card_cover_position) * 100
3536

@@ -59,7 +60,7 @@ export const CollectionCard: React.FC<CollectionCardProps> = ({
5960
alt={caption || 'notion image'}
6061
style={{
6162
objectFit: coverAspect,
62-
objectPosition: `center ${cardCoverPosition}%`
63+
objectPosition: `center ${cardCoverPosition}%`
6364
}}
6465
/>
6566
)

0 commit comments

Comments
 (0)