Add material player

This commit is contained in:
Fergal Moran
2021-01-18 15:53:42 +00:00
parent 217e4a5f8a
commit dea8528ead
5 changed files with 92 additions and 13 deletions

View File

@@ -10,7 +10,7 @@ import {
import React, { useEffect, useState } from "react";
import Tune from "../models/tune";
import TuneTitle from "./TuneTitle";
import YouTubePlayer from "./YouTubePlayer";
import TunePlayer from "./TunePlayer";
const MixList = () => {
const [tunes, setTunes] = useState<Tune[]>([]);
@@ -51,7 +51,7 @@ const MixList = () => {
<TuneTitle url={tune.title} />
</TableCell>
<TableCell>
<YouTubePlayer
<TunePlayer
key={tune.id}
index={tune.id}
videoId={tune.videoId}