Skip to content

Commit

Permalink
πŸ› Add title on basicIframe #1939 (#2050)
Browse files Browse the repository at this point in the history
  • Loading branch information
millianapia authored Jan 16, 2024
1 parent 6134b56 commit 7a8906e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import IFrame from '../../iframe/IFrame'
import type { PortableTextBlock } from '@portabletext/types'
import type { IFrameData } from 'types/types'
import styled from 'styled-components'
import RichText from '../RichText'

type IframeRenderer = {
_key: string
Expand All @@ -28,6 +29,7 @@ export const BasicIframe = (iframe: BlockProps) => {

return (
<Container>
{value.title && <RichText value={value.title} />}
<IFrame
frameTitle={data.frameTitle}
url={data.url}
Expand Down

0 comments on commit 7a8906e

Please sign in to comment.