File tree Expand file tree Collapse file tree 1 file changed +1
-16
lines changed
src/components/EmbedMachine Expand file tree Collapse file tree 1 file changed +1
-16
lines changed Original file line number Diff line number Diff line change 1
- import React , { useState } from 'react' ;
1
+ import React from 'react' ;
2
2
import styles from './styles.module.css' ;
3
3
import { useColorMode } from '@docusaurus/theme-common' ;
4
4
@@ -7,23 +7,9 @@ type Embed = {
7
7
embedURL : string ;
8
8
} ;
9
9
10
-
11
10
export default function EmbedMachine ( { name, embedURL } : Embed ) {
12
11
const { colorMode } = useColorMode ( ) ;
13
-
14
- // keeps the whole page from scrolling when
15
- const handleMouseEnter = ( ) => {
16
- document . body . style . overflow = 'hidden' ;
17
- }
18
- const handleMouseLeave = ( ) => {
19
- document . body . style . overflow = 'auto' ;
20
- }
21
-
22
12
return (
23
- < div
24
- onMouseEnter = { handleMouseEnter }
25
- onMouseLeave = { handleMouseLeave }
26
- >
27
13
< iframe
28
14
loading = "lazy"
29
15
src = { manageURL ( embedURL , {
@@ -36,7 +22,6 @@ export default function EmbedMachine({ name, embedURL }: Embed) {
36
22
</ a >
37
23
.
38
24
</ iframe >
39
- </ div >
40
25
) ;
41
26
}
42
27
You can’t perform that action at this time.
0 commit comments