Displaying captions on video page.

This commit is contained in:
Roland 2022-01-25 10:16:29 -07:00
parent 0315def174
commit 93204a0b2a
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
3 changed files with 10 additions and 2 deletions

View file

@ -97,7 +97,13 @@ function VideoPage(props) {
</Tab.Pane>
}
let tabPanes = [descriptionPane, statisticsPane];
let captionsPane = {
menuItem: 'Captions', render: () => <Tab.Pane>
<pre>{video.caption}</pre>
</Tab.Pane>
};
let tabPanes = [descriptionPane, statisticsPane, captionsPane];
return (
<Container textAlign='left'>