Migrate react-query to v5
This commit is contained in:
21 files changed
+66
-86
No files matched your search
@@ -239,7 +239,7 @@ export const UserLogin = () => {
|
||||
enabled: Boolean(api),
|
||||
});
|
||||
|
||||
if (users.isLoading) {
|
||||
if (users.isPending) {
|
||||
return <LinearProgress />;
|
||||
}
|
||||
if (users.isSuccess) {
|
||||
@@ -407,7 +407,7 @@ export const UserLoginManual = () => {
|
||||
|
||||
return (
|
||||
<>
|
||||
{server.isLoading && <LinearProgress />}
|
||||
{server.isPending && <LinearProgress />}
|
||||
<AppBarBackOnly />
|
||||
<Container
|
||||
maxWidth="xs"
|
||||
@@ -425,7 +425,7 @@ export const UserLoginManual = () => {
|
||||
justifyContent="center"
|
||||
alignItems="center"
|
||||
sx={{
|
||||
opacity: server.isLoading ? 0 : 1,
|
||||
opacity: server.isPending ? 0 : 1,
|
||||
transition: "opacity 200ms",
|
||||
width: "100%",
|
||||
}}
|
||||
|
||||
Reference in new issue
Block a user