Front: Use API to get settings
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { useTheme, Box, Center } from "native-base";
|
||||
import React from "react";
|
||||
import { useQuery } from "react-query";
|
||||
import LoadingComponent from "../Loading";
|
||||
import LoadingComponent, { LoadingView } from "../Loading";
|
||||
import SlideView from "./SlideView";
|
||||
import API from "../../API";
|
||||
|
||||
@@ -13,11 +13,7 @@ const PartitionVisualizer = ({ songId }: PartitionVisualizerProps) => {
|
||||
|
||||
|
||||
if (!partitionRessources.data) {
|
||||
return (
|
||||
<Center style={{ flexGrow: 1 }}>
|
||||
<LoadingComponent />
|
||||
</Center>
|
||||
);
|
||||
return <LoadingView/>;
|
||||
}
|
||||
return (
|
||||
|
||||
|
||||
Reference in New Issue
Block a user