File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
import React from "react"
2
2
import { useTheme } from "@emotion/react"
3
+ import { Box } from "@chakra-ui/react"
3
4
4
5
import darkVideo from "../assets/ethereum-hero-dark.mp4"
5
6
import lightVideo from "../assets/ethereum-hero-light.mp4"
6
7
8
+
7
9
export interface IProps {
8
10
className ?: string
9
11
videoSrc ?: string
@@ -16,7 +18,7 @@ const EthVideo: React.FC<IProps> = ({ className, videoSrc }) => {
16
18
const src = videoSrc ? videoSrc : isDarkTheme ? darkVideo : lightVideo
17
19
18
20
return (
19
- < div className = { className } >
21
+ < Box className = { className } >
20
22
< video
21
23
id = "hero-video"
22
24
width = "100%"
@@ -27,7 +29,7 @@ const EthVideo: React.FC<IProps> = ({ className, videoSrc }) => {
27
29
loop
28
30
muted
29
31
/>
30
- </ div >
32
+ </ Box >
31
33
)
32
34
}
33
35
You can’t perform that action at this time.
0 commit comments