From 422e383eeff10074d56bdb52ecf2103be3719a57 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Sun, 25 Jul 2021 13:54:09 +0200 Subject: fix type validity and remove deprecated buttons from /present --- pages/present.tsx | 48 ------------------------------------------------ 1 file changed, 48 deletions(-) (limited to 'pages') diff --git a/pages/present.tsx b/pages/present.tsx index f1fbc58..09714a9 100644 --- a/pages/present.tsx +++ b/pages/present.tsx @@ -9,9 +9,6 @@ import PlayArrowRoundedIcon from '@material-ui/icons/PlayArrowRounded'; import SettingsRemoteRoundedIcon from '@material-ui/icons/SettingsRemoteRounded'; import SettingsRoundedIcon from '@material-ui/icons/SettingsRounded'; -import CodeRoundedIcon from '@material-ui/icons/CodeRounded'; -import MovieRoundedIcon from '@material-ui/icons/MovieRounded'; - export class TimedVideoPlayer { slide: number; timeline: timeline; @@ -275,51 +272,6 @@ export default function Present() { document.getElementById('menu').classList.remove('active'); }} /> - { - var file = event.target.files[0]; - if (!file) return; - var reader = new FileReader(); - reader.addEventListener('load', ev => { - player.loadVideo(ev.target.result as string); - }); - reader.readAsDataURL(file); - }} - /> - { - var file = event.target.files[0]; - if (!file) return; - var reader = new FileReader(); - reader.addEventListener('load', ev => { - player.loadSlides(ev.target.result as string); - rerender(); - }); - reader.readAsText(file); - }} - /> -