Start working on new titlePage #160

This commit is contained in:
Prayag Prajapati committed 2023-09-05 12:28:06 +05:30
1 parent 73794711dc
commit 8bd42c0f2f
16 files changed
+143 -2831

No files matched your search

+2 -1
View File
@@ -84,12 +84,13 @@ const LikeButton = ({ itemId, isFavorite, queryKey, userId, itemName }) => {
queryClient.setQueryData(queryKey, context.previousData);
console.error(error);
setIsError(true);
setIsLoading(false);
},
onSuccess: () => {
console.log("Successfully updated", itemId);
queryClient.invalidateQueries(queryKey);
setIsSuccess(true);
},
onSettled: () => {
setIsLoading(false);
},
});
+2 -1
View File
@@ -82,12 +82,13 @@ const MarkPlayedButton = ({ itemId, isPlayed, queryKey, userId, itemName }) => {
queryClient.setQueryData(queryKey, context.previousData);
console.error(error);
setIsError(true);
setIsLoading(false);
},
onSuccess: () => {
console.log("Successfully updated", itemId);
queryClient.invalidateQueries(queryKey);
setIsSuccess(true);
},
onSettled: () => {
setIsLoading(false);
},
});
+5 -3
View File
@@ -2,7 +2,7 @@
import PropTypes from "prop-types";
import Button from "@mui/material/Button";
import IconButton from "@mui/material/IconButton";
import Fab from "@mui/material/Fab";
import LinearProgress from "@mui/material/LinearProgress";
import { MdiPlayOutline } from "../icons/mdiPlayOutline";
import {
@@ -115,14 +115,16 @@ const PlayButton = ({
};
if (iconOnly) {
return (
<IconButton
<Fab
color="primary"
aria-label="Play"
className={className}
onClick={handleClick}
sx={sx}
{...buttonProps}
>
<MdiPlayOutline {...iconProps} />
</IconButton>
</Fab>
);
} else {
return (