Front: Play Page: add SlideView

This commit is contained in:
Arthi-chaud
2023-01-25 13:39:15 +00:00
parent a2072644d6
commit b0d63b02fc
5 changed files with 19 additions and 28 deletions
@@ -10,9 +10,7 @@ type PartitionVisualizerProps = {
};
const PartitionVisualizer = ({ songId }: PartitionVisualizerProps) => {
const partitionRessources = useQuery(["partition"], () =>
API.getPartitionRessources(songId)
);
if (!partitionRessources.data) {
return (
@@ -22,7 +20,7 @@ const PartitionVisualizer = ({ songId }: PartitionVisualizerProps) => {
);
}
return (
<SlideView sources={partitionRessources.data} speed={200} startAt={0} />
);
};