Skip to content

Commit

Permalink
[#3] add: mp4 module type added in react-app-env.d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
hanbin9775 committed Aug 1, 2021
1 parent cb29239 commit 916a980
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/VideoModal/VideoSection/VideoSection.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React, { useContext } from 'react';
import styled, { ThemeContext } from 'styled-components';
import SampleVideo from 'assets/video/shorts_1min.mp4';

const VideoSection = () => {
return <div>Hi</div>;
Expand Down
5 changes: 5 additions & 0 deletions src/react-app-env.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
/// <reference types="react-scripts" />

declare module '*.mp4' {
const src: string;
export default src;
}

0 comments on commit 916a980

Please sign in to comment.