Skip to content

Commit

Permalink
chore(SLB-288): add block to page
Browse files Browse the repository at this point in the history
  • Loading branch information
HagerDakroury committed May 3, 2024
1 parent 28e7ba3 commit 2f80ac1
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions packages/ui/src/components/Organisms/PageDisplay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { UnreachableCaseError } from '../../utils/unreachable-case-error';
import { PageTransition } from '../Molecules/PageTransition';
import { BlockCta } from './PageContent/BlockCta';
import { BlockForm } from './PageContent/BlockForm';
import { BlockImageWithText } from './PageContent/BlockImageWithText';
import { BlockMarkup } from './PageContent/BlockMarkup';
import { BlockMedia } from './PageContent/BlockMedia';
import { BlockQuote } from './PageContent/BlockQuote';
Expand Down Expand Up @@ -44,20 +45,7 @@ export function PageDisplay(page: PageFragment) {
case 'BlockCta':
return <BlockCta key={index} {...block} />;
case 'BlockImageWithText':
return (
// TODO: Implement BlockImageWithText
<div
style={{
color: 'red',
border: 'solid 3px red',
padding: '3px',
margin: '5px 0',
}}
// eslint-disable-next-line react/jsx-no-literals
>
BlockImageWithText goes here
</div>
);
return <BlockImageWithText key={index} {...block} />;
case 'BlockQuote':
return <BlockQuote key={index} {...block} />;
default:
Expand Down

0 comments on commit 2f80ac1

Please sign in to comment.