Change the loading overloay to the refresh button

This commit is contained in:
ajnart
2023-04-05 14:46:03 +09:00
parent 1a7ae434b7
commit 9d51e2ce52

View File

@@ -110,7 +110,6 @@ function RssTile({ widget }: RssTileProps) {
return ( return (
<Stack h="100%"> <Stack h="100%">
<LoadingOverlay visible={isFetching} />
<ScrollArea className="scroll-area-w100" w="100%" mt="sm" mb="sm"> <ScrollArea className="scroll-area-w100" w="100%" mt="sm" mb="sm">
{data.map((feed, index) => ( {data.map((feed, index) => (
<Stack w="100%" spacing="xs"> <Stack w="100%" spacing="xs">
@@ -183,7 +182,7 @@ function RssTile({ widget }: RssTileProps) {
}, },
}} }}
> >
<IconRefresh /> {isFetching ? <Loader /> : <IconRefresh />}
</ActionIcon> </ActionIcon>
</Stack> </Stack>
); );