Skip to content

Commit f8c1d5f

Browse files
authored
Merge pull request #201 from ethereum/ethvideo
Fix EthVideo component
2 parents 900fed4 + d0685d0 commit f8c1d5f

File tree

4 files changed

+1
-22
lines changed

4 files changed

+1
-22
lines changed

next.config.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,6 @@ module.exports = (phase, { defaultConfig }) => {
2929
test: /\.svg$/,
3030
use: "@svgr/webpack",
3131
})
32-
config.module.rules.push({
33-
test: /\.mp4$/,
34-
use: {
35-
loader: 'file-loader',
36-
options: {
37-
name: '[name].[ext]',
38-
},
39-
},
40-
});
4132

4233
return config
4334
},

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
"@emotion/styled": "^11.11.0",
2424
"clipboard": "^2.0.11",
2525
"ethereum-blockies-base64": "^1.0.2",
26-
"file-loader": "^6.2.0",
2726
"focus-trap-react": "^10.2.3",
2827
"framer-motion": "^10.13.0",
2928
"gray-matter": "^4.0.3",

src/components/EthVideo.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
import { Box, useColorModeValue } from "@chakra-ui/react"
22

3-
import darkVideo from "@/public/ethereum-hero-dark.mp4"
4-
import lightVideo from "@/public/ethereum-hero-light.mp4"
5-
63
const EthVideo = () => {
7-
const src = useColorModeValue(lightVideo, darkVideo)
4+
const src = useColorModeValue("ethereum-hero-light.mp4", "ethereum-hero-dark.mp4")
85

96
return (
107
<Box>

yarn.lock

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7841,14 +7841,6 @@ file-entry-cache@^6.0.1:
78417841
dependencies:
78427842
flat-cache "^3.0.4"
78437843

7844-
file-loader@^6.2.0:
7845-
version "6.2.0"
7846-
resolved "https://registry.yarnpkg.com/file-loader/-/file-loader-6.2.0.tgz#baef7cf8e1840df325e4390b4484879480eebe4d"
7847-
integrity sha512-qo3glqyTa61Ytg4u73GultjHGjdRyig3tG6lPtyX/jOEJvHif9uB0/OCI2Kif6ctF3caQTW2G5gym21oAsI4pw==
7848-
dependencies:
7849-
loader-utils "^2.0.0"
7850-
schema-utils "^3.0.0"
7851-
78527844
file-system-cache@2.3.0:
78537845
version "2.3.0"
78547846
resolved "https://registry.yarnpkg.com/file-system-cache/-/file-system-cache-2.3.0.tgz#201feaf4c8cd97b9d0d608e96861bb6005f46fe6"

0 commit comments

Comments
 (0)