gallery implementation
This commit is contained in:
parent
5c1a068e2f
commit
c87e0ed7f6
10 changed files with 145 additions and 541 deletions
|
@ -4,7 +4,7 @@ import YoutubeVideo from './YouTubeVideo'
|
|||
const MediaItem = (props) => {
|
||||
const { type, title, data } = props
|
||||
|
||||
if (type !== 'video' && type !== 'photos') return null
|
||||
if ((type !== 'video' && type !== 'photos') || !data) return null
|
||||
|
||||
const item =
|
||||
type === 'video' ? (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue