From 8ad358d749575beb38e746dcf7b82da9a4d72671 Mon Sep 17 00:00:00 2001 From: tonyrewin Date: Sun, 27 Nov 2022 14:35:27 +0300 Subject: [PATCH] added video and show literature --- src/components/Article/FullArticle.tsx | 5 ++-- src/components/Article/VideoPlayer.tsx | 36 +++++++++++++++++--------- 2 files changed, 26 insertions(+), 15 deletions(-) diff --git a/src/components/Article/FullArticle.tsx b/src/components/Article/FullArticle.tsx index 0f0e2039..45b2ac0c 100644 --- a/src/components/Article/FullArticle.tsx +++ b/src/components/Article/FullArticle.tsx @@ -13,6 +13,7 @@ import RatingControl from './RatingControl' import { clsx } from 'clsx' import { CommentsTree } from './CommentsTree' import { useSession } from '../../context/session' +import VideoPlayer from './VideoPlayer' interface ArticleProps { article: Shout @@ -45,9 +46,7 @@ const MediaView = (props: { media: MediaItem; kind: Shout['layout'] }) => { - + diff --git a/src/components/Article/VideoPlayer.tsx b/src/components/Article/VideoPlayer.tsx index 8ef45485..ec89f50f 100644 --- a/src/components/Article/VideoPlayer.tsx +++ b/src/components/Article/VideoPlayer.tsx @@ -1,12 +1,24 @@ -export default (props: { youtubeId?: string; vimeoId?: string; title?: string }) => { - // TODO: styling - return ( -