refactor: use suspense queries to fetch page data
This commit is contained in:
27 files changed
+2140
-1493
No files matched your search
@@ -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() {
|
||||
|
||||
@@ -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,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";
|
||||
|
||||
@@ -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,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 (
|
||||
|
||||
Reference in new issue
Block a user