Skip to content

Commit

Permalink
style(SLB-404): remove scrollpop on media
Browse files Browse the repository at this point in the history
  • Loading branch information
Luqmaan Essop authored and luqmaanessop committed May 31, 2024
1 parent 3338867 commit 01525e6
Showing 1 changed file with 11 additions and 14 deletions.
25 changes: 11 additions & 14 deletions packages/ui/src/components/Organisms/PageContent/BlockMedia.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,24 @@ import { BlockMediaFragment, Html, Image } from '@custom/schema';
import React from 'react';

import { UnreachableCaseError } from '../../../utils/unreachable-case-error';
import { ScrollPop } from '../../Client/ScrollPop';

export function BlockMedia(props: BlockMediaFragment) {
if (!props.media) {
return null;
}
return (
<ScrollPop>
<div className="container-page">
<div className="container-content">
<figure className="mt-16 container-text">
<Media {...props.media} />
{props.caption ? (
<figcaption className="mt-3 flex justify-center gap-x-2 text-sm leading-6 text-gray-500">
<Html markup={props.caption} />
</figcaption>
) : null}
</figure>
</div>
<div className="container-page">
<div className="container-content">
<figure className="mt-16 container-text">
<Media {...props.media} />
{props.caption ? (
<figcaption className="mt-3 flex justify-center gap-x-2 text-sm leading-6 text-gray-500">
<Html markup={props.caption} />
</figcaption>
) : null}
</figure>
</div>
</ScrollPop>
</div>
);
}

Expand Down

0 comments on commit 01525e6

Please sign in to comment.