refactor: use suspense queries to fetch page data

This commit is contained in:
Prayag Prajapati committed 2025-05-21 23:12:17 +05:30
1 parent dfb8eeee12
commit 18d55a4af6
27 files changed
+2140 -1493

No files matched your search

+1 -1
View File
@@ -1,5 +1,5 @@
import { useBackdropStore } from "@/utils/store/backdrop";
import { AnimatePresence, motion } from "framer-motion";
import { AnimatePresence, motion } from "motion/react";
import React, { useLayoutEffect, useState } from "react";
export default function Backdrop() {
+2 -2
View File
@@ -1,5 +1,5 @@
import { AnimatePresence, motion } from "framer-motion";
import type { PanInfo } from "framer-motion";
import { AnimatePresence, motion } from "motion/react";
import type { PanInfo } from "motion/react";
import React, { useEffect, useState, useMemo, useCallback } from "react";
import type { MouseEvent, PointerEvent } from "react";
+1 -1
View File
@@ -1,6 +1,6 @@
import React from "react";
import { motion } from "framer-motion";
import { motion } from "motion/react";
import Button from "@mui/material/Button";
import Chip from "@mui/material/Chip";
@@ -1,6 +1,6 @@
import React, { useEffect, useMemo, useRef, useState } from "react";
import { motion } from "framer-motion";
import { motion } from "motion/react";
import Fab from "@mui/material/Fab";
import IconButton from "@mui/material/IconButton";
@@ -10,7 +10,7 @@ import Typography from "@mui/material/Typography";
import { setAudioRef, useAudioPlayback } from "@/utils/store/audioPlayback";
import useQueue from "@/utils/store/queue";
import { AnimatePresence } from "framer-motion";
import { AnimatePresence } from "motion/react";
import "./audioPlayer.scss";
import { getRuntimeMusic, secToTicks, ticksToSec } from "@/utils/date/time";
+1 -1
View File
@@ -18,7 +18,7 @@ import {
TextField,
Typography,
} from "@mui/material";
import { AnimatePresence, motion } from "framer-motion";
import { AnimatePresence, motion } from "motion/react";
import React, { useState, useMemo, useCallback } from "react";
import logo from "@/assets/logo.png";
+1 -1
View File
@@ -1,7 +1,7 @@
import React from "react";
import { Skeleton } from "@mui/material";
import { motion } from "framer-motion";
import { motion } from "motion/react";
const ItemSkeleton = () => {
return (