Start working on new titlePage #160
This commit is contained in:
16 files changed
+143
-2831
No files matched your search
@@ -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);
|
||||
},
|
||||
});
|
||||
|
||||
@@ -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);
|
||||
},
|
||||
});
|
||||
|
||||
@@ -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 (
|
||||
|
||||
Reference in new issue
Block a user