Skip to content

Commit

Permalink
fix(Tabs): add caption to media (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
Juli Ovechkina authored Jan 10, 2023
1 parent f6a3972 commit e825a4c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/blocks/Tabs/Tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,9 @@ export const TabsBlock = ({
{imageProps && (
<Fragment>
<FullScreenImage {...imageProps} imageClassName={b('image')} />
{activeTabData?.caption && (
<p className={b('caption')}>{activeTabData.caption}</p>
)}
</Fragment>
)}
{activeTabData?.caption && <p className={b('caption')}>{activeTabData.caption}</p>}
</Col>
);

Expand Down

0 comments on commit e825a4c

Please sign in to comment.