Skip to content

Commit

Permalink
feat(editor): ⚡️ Remove iframe preview in editor
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Jun 21, 2022
1 parent 6938533 commit a9e8b3e
Showing 1 changed file with 2 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,20 +1,7 @@
import { Box, Text } from '@chakra-ui/react'
import { Text } from '@chakra-ui/react'
import { EmbedBubbleBlock } from 'models'

export const EmbedBubbleContent = ({ block }: { block: EmbedBubbleBlock }) => {
if (!block.content?.url) return <Text color="gray.500">Click to edit...</Text>
return (
<Box w="full" h="120px" pos="relative">
<iframe
id="embed-bubble-content"
src={block.content.url}
style={{
width: '100%',
height: '100%',
pointerEvents: 'none',
borderRadius: '5px',
}}
/>
</Box>
)
return <Text>Show embed</Text>
}

0 comments on commit a9e8b3e

Please sign in to comment.