diff --git a/src/components/mdx-components/codeblock/react-live-block.tsx b/src/components/mdx-components/codeblock/react-live-block.tsx
index ae0aeea98f..b838fb351e 100644
--- a/src/components/mdx-components/codeblock/react-live-block.tsx
+++ b/src/components/mdx-components/codeblock/react-live-block.tsx
@@ -1,71 +1,70 @@
-import { Box, BoxProps, chakra } from '@chakra-ui/react'
-import React, { useState } from 'react'
-import { LiveEditor, LiveError, LivePreview, LiveProvider } from 'react-live'
-import CodeContainer from './code-container'
-import CopyButton from './copy-button'
-import scope from './react-live-scope'
-import { liveEditorStyle, liveErrorStyle } from './styles'
-import { t } from 'utils/i18n'
-
-const LiveCodePreview = chakra(LivePreview, {
- baseStyle: {
- fontFamily: 'body',
- mt: 5,
- p: 3,
- borderWidth: 1,
- borderRadius: '12px',
- overflowX: 'auto',
- whiteSpace: 'pre',
- },
-})
-
-const EditableNotice = (props: BoxProps) => {
- return (
-
- {t('component.mdx-components.react-live-block.editable-example')}
-
- )
-}
-
-function ReactLiveBlock({ editable, rawCode, ...rest }) {
- const [editorCode, setEditorCode] = useState(rawCode.trim())
- const onChange = (newCode) => setEditorCode(newCode.trim())
- const liveProviderProps = {
- code: editorCode,
- scope,
- ...rest,
- }
- return (
-
-
-
- {editable && (
-
-
-
- )}
-
- {editable && }
-
- {editable && }
-
- )
-}
-
-export default ReactLiveBlock
+import { Box, BoxProps, chakra } from '@chakra-ui/react'
+import React, { useState } from 'react'
+import { LiveEditor, LiveError, LivePreview, LiveProvider } from 'react-live'
+import CodeContainer from './code-container'
+import CopyButton from './copy-button'
+import scope from './react-live-scope'
+import { liveEditorStyle, liveErrorStyle } from './styles'
+import { t } from 'utils/i18n'
+
+const LiveCodePreview = chakra(LivePreview, {
+ baseStyle: {
+ fontFamily: 'body',
+ mt: 5,
+ p: 3,
+ borderWidth: 1,
+ borderRadius: '12px',
+ overflowX: 'auto',
+ },
+})
+
+const EditableNotice = (props: BoxProps) => {
+ return (
+
+ {t('component.mdx-components.react-live-block.editable-example')}
+
+ )
+}
+
+function ReactLiveBlock({ editable, rawCode, ...rest }) {
+ const [editorCode, setEditorCode] = useState(rawCode.trim())
+ const onChange = (newCode) => setEditorCode(newCode.trim())
+ const liveProviderProps = {
+ code: editorCode,
+ scope,
+ ...rest,
+ }
+ return (
+
+
+
+ {editable && (
+
+
+
+ )}
+
+ {editable && }
+
+ {editable && }
+
+ )
+}
+
+export default ReactLiveBlock