Skip to content

Commit b5264b9

Browse files
authored
Merge pull request #7785 from MahendraBishnoi29/dev
refactor `EthVideo.tsx` component with chakra UI
2 parents cd58588 + 49c890d commit b5264b9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/components/EthVideo.tsx

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

45
import darkVideo from "../assets/ethereum-hero-dark.mp4"
56
import lightVideo from "../assets/ethereum-hero-light.mp4"
67

8+
79
export interface IProps {
810
className?: string
911
videoSrc?: string
@@ -16,7 +18,7 @@ const EthVideo: React.FC<IProps> = ({ className, videoSrc }) => {
1618
const src = videoSrc ? videoSrc : isDarkTheme ? darkVideo : lightVideo
1719

1820
return (
19-
<div className={className}>
21+
<Box className={className}>
2022
<video
2123
id="hero-video"
2224
width="100%"
@@ -27,7 +29,7 @@ const EthVideo: React.FC<IProps> = ({ className, videoSrc }) => {
2729
loop
2830
muted
2931
/>
30-
</div>
32+
</Box>
3133
)
3234
}
3335

0 commit comments

Comments
 (0)