From 6136ff92e6a6e64549d4ac4e7a04d26afd7be64e Mon Sep 17 00:00:00 2001 From: mrjvs Date: Sun, 19 Mar 2023 20:19:21 +0100 Subject: [PATCH] code cleanup --- src/{types => @types}/node_webtt.d.ts | 0 src/components/Icon.tsx | 2 +- src/video/components/internal/VideoElementInternal.tsx | 2 -- tsconfig.json | 2 +- 4 files changed, 2 insertions(+), 4 deletions(-) rename src/{types => @types}/node_webtt.d.ts (100%) diff --git a/src/types/node_webtt.d.ts b/src/@types/node_webtt.d.ts similarity index 100% rename from src/types/node_webtt.d.ts rename to src/@types/node_webtt.d.ts diff --git a/src/components/Icon.tsx b/src/components/Icon.tsx index cff0ab7b..96a7e430 100644 --- a/src/components/Icon.tsx +++ b/src/components/Icon.tsx @@ -86,7 +86,7 @@ const iconList: Record = { gear: ``, watch_party: ``, pictureInPicture: ``, - checkmark: ``, + checkmark: ``, }; function ChromeCastButton() { diff --git a/src/video/components/internal/VideoElementInternal.tsx b/src/video/components/internal/VideoElementInternal.tsx index d87c27e9..593f50c8 100644 --- a/src/video/components/internal/VideoElementInternal.tsx +++ b/src/video/components/internal/VideoElementInternal.tsx @@ -1,7 +1,6 @@ import { useVideoPlayerDescriptor } from "@/video/state/hooks"; import { useMediaPlaying } from "@/video/state/logic/mediaplaying"; import { useMisc } from "@/video/state/logic/misc"; -// import { useSource } from "@/video/state/logic/source"; import { setProvider, unsetStateProvider } from "@/video/state/providers/utils"; import { createVideoStateProvider } from "@/video/state/providers/videoStateProvider"; import { useEffect, useMemo, useRef } from "react"; @@ -13,7 +12,6 @@ interface Props { function VideoElement(props: Props) { const descriptor = useVideoPlayerDescriptor(); const mediaPlaying = useMediaPlaying(descriptor); - // const source = useSource(descriptor); const misc = useMisc(descriptor); const ref = useRef(null); diff --git a/tsconfig.json b/tsconfig.json index a74a50bc..a00c1a1f 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -16,7 +16,7 @@ "noEmit": true, "jsx": "react-jsx", "baseUrl": "./src", - "typeRoots": ["./src/types"], + "typeRoots": ["./src/@types"], "paths": { "@/*": ["./*"] },