Skip to content

Commit 49c890d

Browse files
refactor EthVideo.tsx component
1 parent 096941b commit 49c890d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/EthVideo.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from "react"
22
import { useTheme } from "@emotion/react"
3-
import { AspectRatio } from "@chakra-ui/react"
3+
import { Box } from "@chakra-ui/react"
44

55
import darkVideo from "../assets/ethereum-hero-dark.mp4"
66
import lightVideo from "../assets/ethereum-hero-light.mp4"
@@ -18,7 +18,7 @@ const EthVideo: React.FC<IProps> = ({ className, videoSrc }) => {
1818
const src = videoSrc ? videoSrc : isDarkTheme ? darkVideo : lightVideo
1919

2020
return (
21-
<AspectRatio ratio={1 / 1} className={className}>
21+
<Box className={className}>
2222
<video
2323
id="hero-video"
2424
width="100%"
@@ -29,7 +29,7 @@ const EthVideo: React.FC<IProps> = ({ className, videoSrc }) => {
2929
loop
3030
muted
3131
/>
32-
</AspectRatio>
32+
</Box>
3333
)
3434
}
3535

0 commit comments

Comments
 (0)