diff --git a/app/src/components/Common.js b/app/src/components/Common.js index 0ba16e61..64335cb8 100644 --- a/app/src/components/Common.js +++ b/app/src/components/Common.js @@ -100,10 +100,19 @@ export function VideoCard({video}) { } let poster_url = video.poster_path ? `/media/${encodeURIComponent(video.poster_path)}` : null; + let imageLabel = null; + if (video.favorite) { + imageLabel = {as: 'a', corner: 'left', icon: 'heart', color: 'green'}; + } + return ( - + @@ -501,7 +510,7 @@ export function ClearButton({onClick, style, label, icon = 'close'}) { } -export function SearchInput({initValue, onSubmit, size, placeholder='Search...'}) { +export function SearchInput({initValue, onSubmit, size, placeholder = 'Search...'}) { let [value, setValue] = useState(initValue || ''); size = size || 'small';