chore(web): Add new album page #243

This commit is contained in:
Prayag Prajapati committed 2024-01-16 21:47:55 +05:30
1 parent 3987ffd4da
commit 63b717adfb
8 files changed
+408 -49

No files matched your search

+5 -6
View File
@@ -1,5 +1,5 @@
import { motion } from "framer-motion";
import React, { useState, useEffect } from "react";
import React, { useState, useEffect, useLayoutEffect } from "react";
import { useParams } from "react-router-dom";
import { useQuery } from "@tanstack/react-query";
@@ -120,7 +120,7 @@ const LibraryView = () => {
*/
const [viewType, setViewType] = useState([]);
useEffect(() => {
useLayoutEffect(() => {
if (currentLib.isError) {
console.error(currentLib.error);
}
@@ -211,8 +211,7 @@ const LibraryView = () => {
]);
}
}
});
}, [currentLib.isSuccess]);
const [filterArray, setFilterArray] = useState([]);
const [videoTypes, setVideoTypes] = useState([]);
@@ -330,10 +329,10 @@ const LibraryView = () => {
const [setAppBackdrop] = useBackdropStore((state) => [state.setBackdrop]);
useState(() => {
useEffect(() => {
// Remove App backdrop in library page
setAppBackdrop("", "");
console.log(items.isSuccess);
// console.log(items.isSuccess);
}, []);
if (items.isError) {