Skip to content

Commit

Permalink
remove unused
Browse files Browse the repository at this point in the history
  • Loading branch information
baskvava committed Oct 13, 2023
1 parent 165ae07 commit 0a6083c
Show file tree
Hide file tree
Showing 17 changed files with 54 additions and 44 deletions.
2 changes: 1 addition & 1 deletion dist/cjs/index.js

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion dist/cjs/types/ModalVideo.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ interface Props {
widthRatio?: number;
ratio?: number[];
autoPlay?: boolean;
type?: "video" | "iframe";
controls?: "custom" | "default" | "hidden";
}
declare function ModalVideo({ isOpen, onClosed, url, title, header, maxWidth, width, responsive: isResponsive, widthRatio, ratio, autoPlay, }: Props): import("react/jsx-runtime").JSX.Element | null;
declare function ModalVideo({ isOpen, onClosed, url, title, header, maxWidth, width, responsive: isResponsive, widthRatio, ratio, autoPlay, type, controls, }: Props): import("react/jsx-runtime").JSX.Element | null;
export default ModalVideo;
1 change: 1 addition & 0 deletions dist/cjs/types/buttons/muted/ClassicBtn.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default function MutedClassicBtn(): import("react/jsx-runtime").JSX.Element;
1 change: 1 addition & 0 deletions dist/cjs/types/buttons/notMuted/ClassicBtn.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default function NotMutedClassicBtn(): import("react/jsx-runtime").JSX.Element;
1 change: 1 addition & 0 deletions dist/cjs/types/buttons/start/ClassicBtn.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default function StartClassicBtn(): import("react/jsx-runtime").JSX.Element;
1 change: 1 addition & 0 deletions dist/cjs/types/buttons/stop/ClassicBtn.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default function StopClassicBtn(): import("react/jsx-runtime").JSX.Element;
2 changes: 1 addition & 1 deletion dist/esm/index.js

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion dist/esm/types/ModalVideo.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ interface Props {
widthRatio?: number;
ratio?: number[];
autoPlay?: boolean;
type?: "video" | "iframe";
controls?: "custom" | "default" | "hidden";
}
declare function ModalVideo({ isOpen, onClosed, url, title, header, maxWidth, width, responsive: isResponsive, widthRatio, ratio, autoPlay, }: Props): import("react/jsx-runtime").JSX.Element | null;
declare function ModalVideo({ isOpen, onClosed, url, title, header, maxWidth, width, responsive: isResponsive, widthRatio, ratio, autoPlay, type, controls, }: Props): import("react/jsx-runtime").JSX.Element | null;
export default ModalVideo;
1 change: 1 addition & 0 deletions dist/esm/types/buttons/muted/ClassicBtn.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default function MutedClassicBtn(): import("react/jsx-runtime").JSX.Element;
1 change: 1 addition & 0 deletions dist/esm/types/buttons/notMuted/ClassicBtn.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default function NotMutedClassicBtn(): import("react/jsx-runtime").JSX.Element;
1 change: 1 addition & 0 deletions dist/esm/types/buttons/start/ClassicBtn.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default function StartClassicBtn(): import("react/jsx-runtime").JSX.Element;
1 change: 1 addition & 0 deletions dist/esm/types/buttons/stop/ClassicBtn.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default function StopClassicBtn(): import("react/jsx-runtime").JSX.Element;
4 changes: 3 additions & 1 deletion dist/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ interface Props {
widthRatio?: number;
ratio?: number[];
autoPlay?: boolean;
type?: "video" | "iframe";
controls?: "custom" | "default" | "hidden";
}
declare function ModalVideo({ isOpen, onClosed, url, title, header, maxWidth, width, responsive: isResponsive, widthRatio, ratio, autoPlay, }: Props): react_jsx_runtime.JSX.Element | null;
declare function ModalVideo({ isOpen, onClosed, url, title, header, maxWidth, width, responsive: isResponsive, widthRatio, ratio, autoPlay, type, controls, }: Props): react_jsx_runtime.JSX.Element | null;

interface UseToggleReturnType {
isOpen: boolean;
Expand Down
67 changes: 33 additions & 34 deletions example/output/index.7e8e2d03.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion example/output/index.7e8e2d03.js.map

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion example/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ function App() {
isOpen={isOpen}
onClosed={close}
autoPlay={true}
// controls="custom"
url="https://storage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4"
/>
</div>
Expand Down
4 changes: 1 addition & 3 deletions src/ModalVideo.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import { useEffect, useLayoutEffect, useRef, useState } from "react";
import { useEffect, useRef, useState } from "react";
import { createPortal } from "react-dom";

import "./ModalVideo.css";
import { useWindowObserver } from "./useWidowObserver";
import CloseBtn from "./CloseBtn";
import ClassicBtn from "./buttons/start/ClassicBtn";
import StartClassicBtn from "./buttons/start/ClassicBtn";
import StopClassicBtn from "./buttons/stop/ClassicBtn";
import MutedClassicBtn from "./buttons/muted/ClassicBtn";
Expand Down

0 comments on commit 0a6083c

Please sign in to comment.