mirror of
https://github.com/antebudimir/feishin.git
synced 2025-12-31 10:03:33 +00:00
Add full container spinner/loader
This commit is contained in:
parent
5dbc0c61c5
commit
691bc8f1ef
3 changed files with 16 additions and 20 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import { useMemo, useRef } from 'react';
|
||||
import { Center, Stack } from '@mantine/core';
|
||||
import { Stack } from '@mantine/core';
|
||||
import { AlbumListSort, LibraryItem, ServerType, SortOrder } from '/@/renderer/api/types';
|
||||
import { FeatureCarousel, NativeScrollArea, Spinner } from '/@/renderer/components';
|
||||
import { useAlbumList } from '/@/renderer/features/albums';
|
||||
|
|
@ -93,14 +93,7 @@ const HomeRoute = () => {
|
|||
mostPlayed.isFetching;
|
||||
|
||||
if (isLoading) {
|
||||
return (
|
||||
<Center
|
||||
h="100%"
|
||||
w="100%"
|
||||
>
|
||||
<Spinner />
|
||||
</Center>
|
||||
);
|
||||
return <Spinner container />;
|
||||
}
|
||||
|
||||
const carousels = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue