Skip to content

Commit 02ecdac

Browse files
committed
fix type error
1 parent b082a82 commit 02ecdac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

frontend/main/src/components/PostMedia.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ export default function PostMedia({
1616
}: {
1717
post: Post;
1818
noImage?: boolean;
19-
vidRef: RefObject<ReactPlayer>;
20-
onStart: (progress?: any) => void;
21-
onProgress: (progress?: { played: number }) => void;
19+
vidRef?: RefObject<ReactPlayer>;
20+
onStart?: (progress?: any) => void;
21+
onProgress?: (progress?: { played: number }) => void;
2222
}): JSX.Element {
2323
const [playing, setPlaying] = useState(true);
2424
const isYouTube = (): boolean => {

0 commit comments

Comments
 (0)