From f8463676a40656893c2048655e8807099e3adb39 Mon Sep 17 00:00:00 2001 From: piotrruss Date: Mon, 10 Apr 2023 21:57:33 +0200 Subject: add radio app --- apps/Player/components/App.js | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'apps/Player/components/App.js') diff --git a/apps/Player/components/App.js b/apps/Player/components/App.js index 2ace63c..552ae52 100644 --- a/apps/Player/components/App.js +++ b/apps/Player/components/App.js @@ -7,7 +7,7 @@ import Video from './Video' import Buttons from './Buttons' import { Splash } from 'components' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' -import { faList, faTrashAlt, faCaretSquareRight, faInfinity, faAlignJustify, faVideo, faMusic } from '@fortawesome/free-solid-svg-icons' +import { faList, faTrashAlt, faCaretSquareRight, faInfinity, faAlignJustify, faVideo, faMusic, faPodcast } from '@fortawesome/free-solid-svg-icons' const App = ({ list }) => { const { t } = useSettings() @@ -78,6 +78,15 @@ const App = ({ list }) => { smallDevice && details && details.show && setShowPlaylist(false) }, [details && details.show]) + const iconType = type => { + switch (type) { + case 'yt_video': return faCaretSquareRight + case 'yt_live': return faInfinity + case 'radio': return faPodcast + default: return faCaretSquareRight + } + } + const remove = (e, i) => { e.stopPropagation() if (current === i) { @@ -144,9 +153,7 @@ const App = ({ list }) => { key={item.id} > {(i + 1) + '.'} {item.title} -- cgit v1.2.3