Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Requests iframe height for better sizing #27

Merged
merged 1 commit into from
Nov 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1 +1 @@
STORYBOOK_URL=https://63e4f71c39dc65c5c703c1e8-trawpnaxme.chromatic.com
STORYBOOK_URL=https://main--63e4f71c39dc65c5c703c1e8.chromatic.com/
2 changes: 1 addition & 1 deletion docs/lsd/components/Autocomplete.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ import { StorybookDemo } from '@site/src/components/mdx/StorybookDemo';

# Autocomplete

<StorybookDemo name="Autocomplete" storybookUrl="https://63e4f71c39dc65c5c703c1e8-trawpnaxme.chromatic.com" docId="autocomplete--docs" globalTypes={{}} componentProperties={[]} />
<StorybookDemo name="Autocomplete" storybookUrl="https://main--63e4f71c39dc65c5c703c1e8.chromatic.com/" docId="autocomplete--docs" globalTypes={{}} componentProperties={[]} />
2 changes: 1 addition & 1 deletion docs/lsd/components/Badge.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ import { StorybookDemo } from '@site/src/components/mdx/StorybookDemo';

# Badge

<StorybookDemo name="Badge" storybookUrl="https://63e4f71c39dc65c5c703c1e8-trawpnaxme.chromatic.com" docId="badge--docs" globalTypes={{}} componentProperties={[]} />
<StorybookDemo name="Badge" storybookUrl="https://main--63e4f71c39dc65c5c703c1e8.chromatic.com/" docId="badge--docs" globalTypes={{}} componentProperties={[]} />
2 changes: 1 addition & 1 deletion docs/lsd/components/Breadcrumb.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ import { StorybookDemo } from '@site/src/components/mdx/StorybookDemo';

# Breadcrumb

<StorybookDemo name="Breadcrumb" storybookUrl="https://63e4f71c39dc65c5c703c1e8-trawpnaxme.chromatic.com" docId="breadcrumb--docs" globalTypes={{}} componentProperties={[]} />
<StorybookDemo name="Breadcrumb" storybookUrl="https://main--63e4f71c39dc65c5c703c1e8.chromatic.com/" docId="breadcrumb--docs" globalTypes={{}} componentProperties={[]} />
2 changes: 1 addition & 1 deletion docs/lsd/components/Button.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ import { StorybookDemo } from '@site/src/components/mdx/StorybookDemo';

# Button

<StorybookDemo name="Button" storybookUrl="https://63e4f71c39dc65c5c703c1e8-trawpnaxme.chromatic.com" docId="button--docs" globalTypes={{}} componentProperties={[]} />
<StorybookDemo name="Button" storybookUrl="https://main--63e4f71c39dc65c5c703c1e8.chromatic.com/" docId="button--docs" globalTypes={{}} componentProperties={[]} />
2 changes: 1 addition & 1 deletion docs/lsd/components/ButtonGroup.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ import { StorybookDemo } from '@site/src/components/mdx/StorybookDemo';

# ButtonGroup

<StorybookDemo name="ButtonGroup" storybookUrl="https://63e4f71c39dc65c5c703c1e8-trawpnaxme.chromatic.com" docId="buttongroup--docs" globalTypes={{}} componentProperties={[]} />
<StorybookDemo name="ButtonGroup" storybookUrl="https://main--63e4f71c39dc65c5c703c1e8.chromatic.com/" docId="buttongroup--docs" globalTypes={{}} componentProperties={[]} />
2 changes: 1 addition & 1 deletion docs/lsd/components/Card.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ import { StorybookDemo } from '@site/src/components/mdx/StorybookDemo';

# Card

<StorybookDemo name="Card" storybookUrl="https://63e4f71c39dc65c5c703c1e8-trawpnaxme.chromatic.com" docId="card--docs" globalTypes={{}} componentProperties={[]} />
<StorybookDemo name="Card" storybookUrl="https://main--63e4f71c39dc65c5c703c1e8.chromatic.com/" docId="card--docs" globalTypes={{}} componentProperties={[]} />
2 changes: 1 addition & 1 deletion docs/lsd/components/Checkbox.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ import { StorybookDemo } from '@site/src/components/mdx/StorybookDemo';

# Checkbox

<StorybookDemo name="Checkbox" storybookUrl="https://63e4f71c39dc65c5c703c1e8-trawpnaxme.chromatic.com" docId="checkbox--docs" globalTypes={{}} componentProperties={[]} />
<StorybookDemo name="Checkbox" storybookUrl="https://main--63e4f71c39dc65c5c703c1e8.chromatic.com/" docId="checkbox--docs" globalTypes={{}} componentProperties={[]} />
2 changes: 1 addition & 1 deletion docs/lsd/components/CheckboxGroup.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ import { StorybookDemo } from '@site/src/components/mdx/StorybookDemo';

# CheckboxGroup

<StorybookDemo name="CheckboxGroup" storybookUrl="https://63e4f71c39dc65c5c703c1e8-trawpnaxme.chromatic.com" docId="checkboxgroup--docs" globalTypes={{}} componentProperties={[]} />
<StorybookDemo name="CheckboxGroup" storybookUrl="https://main--63e4f71c39dc65c5c703c1e8.chromatic.com/" docId="checkboxgroup--docs" globalTypes={{}} componentProperties={[]} />
2 changes: 1 addition & 1 deletion docs/lsd/components/Collapse.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ import { StorybookDemo } from '@site/src/components/mdx/StorybookDemo';

# Collapse

<StorybookDemo name="Collapse" storybookUrl="https://63e4f71c39dc65c5c703c1e8-trawpnaxme.chromatic.com" docId="collapse--docs" globalTypes={{}} componentProperties={[]} />
<StorybookDemo name="Collapse" storybookUrl="https://main--63e4f71c39dc65c5c703c1e8.chromatic.com/" docId="collapse--docs" globalTypes={{}} componentProperties={[]} />
2 changes: 1 addition & 1 deletion docs/lsd/components/DateField.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ import { StorybookDemo } from '@site/src/components/mdx/StorybookDemo';

# DateField

<StorybookDemo name="DateField" storybookUrl="https://63e4f71c39dc65c5c703c1e8-trawpnaxme.chromatic.com" docId="datefield--uncontrolled" globalTypes={{}} componentProperties={[]} />
<StorybookDemo name="DateField" storybookUrl="https://main--63e4f71c39dc65c5c703c1e8.chromatic.com/" docId="datefield--uncontrolled" globalTypes={{}} componentProperties={[]} />
2 changes: 1 addition & 1 deletion docs/lsd/components/DatePicker.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ import { StorybookDemo } from '@site/src/components/mdx/StorybookDemo';

# DatePicker

<StorybookDemo name="DatePicker" storybookUrl="https://63e4f71c39dc65c5c703c1e8-trawpnaxme.chromatic.com" docId="datepicker--uncontrolled" globalTypes={{}} componentProperties={[]} />
<StorybookDemo name="DatePicker" storybookUrl="https://main--63e4f71c39dc65c5c703c1e8.chromatic.com/" docId="datepicker--uncontrolled" globalTypes={{}} componentProperties={[]} />
2 changes: 1 addition & 1 deletion docs/lsd/components/DateRangePicker.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ import { StorybookDemo } from '@site/src/components/mdx/StorybookDemo';

# DateRangePicker

<StorybookDemo name="DateRangePicker" storybookUrl="https://63e4f71c39dc65c5c703c1e8-trawpnaxme.chromatic.com" docId="daterangepicker--uncontrolled" globalTypes={{}} componentProperties={[]} />
<StorybookDemo name="DateRangePicker" storybookUrl="https://main--63e4f71c39dc65c5c703c1e8.chromatic.com/" docId="daterangepicker--uncontrolled" globalTypes={{}} componentProperties={[]} />
2 changes: 1 addition & 1 deletion docs/lsd/components/Dropdown.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ import { StorybookDemo } from '@site/src/components/mdx/StorybookDemo';

# Dropdown

<StorybookDemo name="Dropdown" storybookUrl="https://63e4f71c39dc65c5c703c1e8-trawpnaxme.chromatic.com" docId="dropdown--docs" globalTypes={{}} componentProperties={[]} />
<StorybookDemo name="Dropdown" storybookUrl="https://main--63e4f71c39dc65c5c703c1e8.chromatic.com/" docId="dropdown--docs" globalTypes={{}} componentProperties={[]} />
2 changes: 1 addition & 1 deletion docs/lsd/components/IconButton.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ import { StorybookDemo } from '@site/src/components/mdx/StorybookDemo';

# IconButton

<StorybookDemo name="IconButton" storybookUrl="https://63e4f71c39dc65c5c703c1e8-trawpnaxme.chromatic.com" docId="iconbutton--docs" globalTypes={{}} componentProperties={[]} />
<StorybookDemo name="IconButton" storybookUrl="https://main--63e4f71c39dc65c5c703c1e8.chromatic.com/" docId="iconbutton--docs" globalTypes={{}} componentProperties={[]} />
2 changes: 1 addition & 1 deletion docs/lsd/components/IconButtonGroup.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ import { StorybookDemo } from '@site/src/components/mdx/StorybookDemo';

# IconButtonGroup

<StorybookDemo name="IconButtonGroup" storybookUrl="https://63e4f71c39dc65c5c703c1e8-trawpnaxme.chromatic.com" docId="iconbuttongroup--docs" globalTypes={{}} componentProperties={[]} />
<StorybookDemo name="IconButtonGroup" storybookUrl="https://main--63e4f71c39dc65c5c703c1e8.chromatic.com/" docId="iconbuttongroup--docs" globalTypes={{}} componentProperties={[]} />
2 changes: 1 addition & 1 deletion docs/lsd/components/Modal.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ import { StorybookDemo } from '@site/src/components/mdx/StorybookDemo';

# Modal

<StorybookDemo name="Modal" storybookUrl="https://63e4f71c39dc65c5c703c1e8-trawpnaxme.chromatic.com" docId="modal--docs" globalTypes={{}} componentProperties={[]} />
<StorybookDemo name="Modal" storybookUrl="https://main--63e4f71c39dc65c5c703c1e8.chromatic.com/" docId="modal--docs" globalTypes={{}} componentProperties={[]} />
2 changes: 1 addition & 1 deletion docs/lsd/components/NumberInput.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ import { StorybookDemo } from '@site/src/components/mdx/StorybookDemo';

# NumberInput

<StorybookDemo name="NumberInput" storybookUrl="https://63e4f71c39dc65c5c703c1e8-trawpnaxme.chromatic.com" docId="numberinput--docs" globalTypes={{}} componentProperties={[]} />
<StorybookDemo name="NumberInput" storybookUrl="https://main--63e4f71c39dc65c5c703c1e8.chromatic.com/" docId="numberinput--docs" globalTypes={{}} componentProperties={[]} />
2 changes: 1 addition & 1 deletion docs/lsd/components/Quote.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ import { StorybookDemo } from '@site/src/components/mdx/StorybookDemo';

# Quote

<StorybookDemo name="Quote" storybookUrl="https://63e4f71c39dc65c5c703c1e8-trawpnaxme.chromatic.com" docId="quote--docs" globalTypes={{}} componentProperties={[]} />
<StorybookDemo name="Quote" storybookUrl="https://main--63e4f71c39dc65c5c703c1e8.chromatic.com/" docId="quote--docs" globalTypes={{}} componentProperties={[]} />
2 changes: 1 addition & 1 deletion docs/lsd/components/RadioButton.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ import { StorybookDemo } from '@site/src/components/mdx/StorybookDemo';

# RadioButton

<StorybookDemo name="RadioButton" storybookUrl="https://63e4f71c39dc65c5c703c1e8-trawpnaxme.chromatic.com" docId="radiobutton--docs" globalTypes={{}} componentProperties={[]} />
<StorybookDemo name="RadioButton" storybookUrl="https://main--63e4f71c39dc65c5c703c1e8.chromatic.com/" docId="radiobutton--docs" globalTypes={{}} componentProperties={[]} />
2 changes: 1 addition & 1 deletion docs/lsd/components/RadioButtonGroup.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ import { StorybookDemo } from '@site/src/components/mdx/StorybookDemo';

# RadioButtonGroup

<StorybookDemo name="RadioButtonGroup" storybookUrl="https://63e4f71c39dc65c5c703c1e8-trawpnaxme.chromatic.com" docId="radiobuttongroup--docs" globalTypes={{}} componentProperties={[]} />
<StorybookDemo name="RadioButtonGroup" storybookUrl="https://main--63e4f71c39dc65c5c703c1e8.chromatic.com/" docId="radiobuttongroup--docs" globalTypes={{}} componentProperties={[]} />
2 changes: 1 addition & 1 deletion docs/lsd/components/Table.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ import { StorybookDemo } from '@site/src/components/mdx/StorybookDemo';

# Table

<StorybookDemo name="Table" storybookUrl="https://63e4f71c39dc65c5c703c1e8-trawpnaxme.chromatic.com" docId="table--docs" globalTypes={{}} componentProperties={[]} />
<StorybookDemo name="Table" storybookUrl="https://main--63e4f71c39dc65c5c703c1e8.chromatic.com/" docId="table--docs" globalTypes={{}} componentProperties={[]} />
2 changes: 1 addition & 1 deletion docs/lsd/components/Tabs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ import { StorybookDemo } from '@site/src/components/mdx/StorybookDemo';

# Tabs

<StorybookDemo name="Tabs" storybookUrl="https://63e4f71c39dc65c5c703c1e8-trawpnaxme.chromatic.com" docId="tabs--docs" globalTypes={{}} componentProperties={[]} />
<StorybookDemo name="Tabs" storybookUrl="https://main--63e4f71c39dc65c5c703c1e8.chromatic.com/" docId="tabs--docs" globalTypes={{}} componentProperties={[]} />
2 changes: 1 addition & 1 deletion docs/lsd/components/Tag.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ import { StorybookDemo } from '@site/src/components/mdx/StorybookDemo';

# Tag

<StorybookDemo name="Tag" storybookUrl="https://63e4f71c39dc65c5c703c1e8-trawpnaxme.chromatic.com" docId="tag--docs" globalTypes={{}} componentProperties={[]} />
<StorybookDemo name="Tag" storybookUrl="https://main--63e4f71c39dc65c5c703c1e8.chromatic.com/" docId="tag--docs" globalTypes={{}} componentProperties={[]} />
2 changes: 1 addition & 1 deletion docs/lsd/components/TextField.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ import { StorybookDemo } from '@site/src/components/mdx/StorybookDemo';

# TextField

<StorybookDemo name="TextField" storybookUrl="https://63e4f71c39dc65c5c703c1e8-trawpnaxme.chromatic.com" docId="textfield--docs" globalTypes={{}} componentProperties={[]} />
<StorybookDemo name="TextField" storybookUrl="https://main--63e4f71c39dc65c5c703c1e8.chromatic.com/" docId="textfield--docs" globalTypes={{}} componentProperties={[]} />
2 changes: 1 addition & 1 deletion docs/lsd/components/ThemeProvider.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ import { StorybookDemo } from '@site/src/components/mdx/StorybookDemo';

# ThemeProvider

<StorybookDemo name="ThemeProvider" storybookUrl="https://63e4f71c39dc65c5c703c1e8-trawpnaxme.chromatic.com" docId="themeprovider--docs" globalTypes={{}} componentProperties={[]} />
<StorybookDemo name="ThemeProvider" storybookUrl="https://main--63e4f71c39dc65c5c703c1e8.chromatic.com/" docId="themeprovider--docs" globalTypes={{}} componentProperties={[]} />
2 changes: 1 addition & 1 deletion docs/lsd/components/Toast.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ import { StorybookDemo } from '@site/src/components/mdx/StorybookDemo';

# Toast

<StorybookDemo name="Toast" storybookUrl="https://63e4f71c39dc65c5c703c1e8-trawpnaxme.chromatic.com" docId="toast--docs" globalTypes={{}} componentProperties={[]} />
<StorybookDemo name="Toast" storybookUrl="https://main--63e4f71c39dc65c5c703c1e8.chromatic.com/" docId="toast--docs" globalTypes={{}} componentProperties={[]} />
2 changes: 1 addition & 1 deletion docs/lsd/components/ToastProvider.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ import { StorybookDemo } from '@site/src/components/mdx/StorybookDemo';

# ToastProvider

<StorybookDemo name="ToastProvider" storybookUrl="https://63e4f71c39dc65c5c703c1e8-trawpnaxme.chromatic.com" docId="toastprovider--docs" globalTypes={{}} componentProperties={[]} />
<StorybookDemo name="ToastProvider" storybookUrl="https://main--63e4f71c39dc65c5c703c1e8.chromatic.com/" docId="toastprovider--docs" globalTypes={{}} componentProperties={[]} />
2 changes: 1 addition & 1 deletion docs/lsd/components/Typography.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ import { StorybookDemo } from '@site/src/components/mdx/StorybookDemo';

# Typography

<StorybookDemo name="Typography" storybookUrl="https://63e4f71c39dc65c5c703c1e8-trawpnaxme.chromatic.com" docId="typography--docs" globalTypes={{}} componentProperties={[]} />
<StorybookDemo name="Typography" storybookUrl="https://main--63e4f71c39dc65c5c703c1e8.chromatic.com/" docId="typography--docs" globalTypes={{}} componentProperties={[]} />
2 changes: 1 addition & 1 deletion docs/lsd/design-tokens/Colors.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ import { StorybookDemo } from '@site/src/components/mdx/StorybookDemo';

# Colors

<StorybookDemo name="Colors" docId="themeprovider--docs" storybookUrl="https://63e4f71c39dc65c5c703c1e8-trawpnaxme.chromatic.com" storyId="themeprovider--colors" globalTypes={{}} componentProperties={[]} />
<StorybookDemo name="Colors" docId="themeprovider--docs" storybookUrl="https://main--63e4f71c39dc65c5c703c1e8.chromatic.com/" storyId="themeprovider--colors" globalTypes={{}} componentProperties={[]} />
2 changes: 1 addition & 1 deletion docs/lsd/design-tokens/Spacing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ import { StorybookDemo } from '@site/src/components/mdx/StorybookDemo';

# Spacing

<StorybookDemo name="Spacing" docId="themeprovider--docs" storybookUrl="https://63e4f71c39dc65c5c703c1e8-trawpnaxme.chromatic.com" storyId="themeprovider--spacing" globalTypes={{}} componentProperties={[]} />
<StorybookDemo name="Spacing" docId="themeprovider--docs" storybookUrl="https://main--63e4f71c39dc65c5c703c1e8.chromatic.com/" storyId="themeprovider--spacing" globalTypes={{}} componentProperties={[]} />
2 changes: 1 addition & 1 deletion docs/lsd/design-tokens/Typography.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ import { StorybookDemo } from '@site/src/components/mdx/StorybookDemo';

# Typography

<StorybookDemo name="Typography" docId="themeprovider--docs" storybookUrl="https://63e4f71c39dc65c5c703c1e8-trawpnaxme.chromatic.com" storyId="themeprovider--typography" globalTypes={{}} componentProperties={[]} />
<StorybookDemo name="Typography" docId="themeprovider--docs" storybookUrl="https://main--63e4f71c39dc65c5c703c1e8.chromatic.com/" storyId="themeprovider--typography" globalTypes={{}} componentProperties={[]} />
2 changes: 0 additions & 2 deletions src/components/mdx/ImageGrid/ImageGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,6 @@ export const ImageGrid: React.FC<ImageGridProps> = ({
}
}, [])

console.log('Hello!', folder + thumbnailsFolder)

return (
<>
<Grid
Expand Down
1 change: 0 additions & 1 deletion src/components/mdx/StorybookDemo/StoryBookDemo.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
iframe {
transform: translateY(-20px);
width: 100%;
height: 6000px;
background-color: transparent;
}
}
46 changes: 45 additions & 1 deletion src/components/mdx/StorybookDemo/StorybookDemo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,43 @@ import clsx from 'clsx'
import React, { useMemo, useRef, useState } from 'react'
import styles from './StoryBookDemo.module.scss'

const onIframeLoad = (iframe: HTMLIFrameElement) => {
const handleIframeMessage = (event: MessageEvent) => {
if (
typeof event.data === 'string' &&
event.data.includes('storyRendered')
) {
// XXX: This if() block executes when storybook has finished rendering.
// So if we ever want to implement a loading screen, this if() block may help.
requestHeightFromIframe()
} else if (event.data && event.data.type === 'iframeHeightResponse') {
iframe.style.height = `${event.data.height}px`
}
}

// Request height from the iframe
const requestHeightFromIframe = () => {
if (!iframe || !iframe.contentWindow) {
return
}

iframe.contentWindow.postMessage(
{
type: 'requestHeight',
},
'*',
)
}

window.addEventListener('message', handleIframeMessage)

// The following setInterval is just a safety mechanism for the very unlikely case
// of the iframe not sending a storyRendered message.
setInterval(() => {
requestHeightFromIframe()
}, 1000)
}

jeangovil marked this conversation as resolved.
Show resolved Hide resolved
type GlobalType = {
name: string
description: string
Expand Down Expand Up @@ -124,7 +161,14 @@ export const StorybookDemo: React.FC<StorybookDemoProps> = ({
))}
</div>
<div className={styles.iframeContainer}>
<iframe ref={iframeRef} src={embedUrl} />
<iframe
ref={iframeRef}
src={embedUrl}
height={500}
onLoad={() => {
onIframeLoad(iframeRef.current)
}}
/>
</div>
</div>
)
Expand Down