#
luxiaotao1123
2024-09-29 551aa6e5c2f92d57cdcc67c579b6259e88ff2b27
zy-acs-flow/src/page/mission/MissionListContent.jsx
@@ -1,7 +1,6 @@
import { useEffect, useState } from 'react';
import { DragDropContext } from '@hello-pangea/dnd';
import { Box } from '@mui/material';
import isEqual from 'lodash/isEqual';
import { Box, LinearProgress } from '@mui/material';
import {
    useDataProvider,
    useListContext,
@@ -16,14 +15,10 @@
    const translate = useTranslate();
    const notify = useNotify();
    const refresh = useRefresh();
    const { data, isPending, refetch } = useListContext();
    const dataProvider = useDataProvider();
    const { data, isPending, refetch } = useListContext();
    const [stages, setStages] = useState([]);
    // const [dealsByStage, setDealsByStage] = useState(
    //     getDealsByStage([], dealStages)
    // );
    useEffect(() => {
        const httpStages = async () => {
@@ -51,7 +46,7 @@
        // eslint-disable-next-line react-hooks/exhaustive-deps
    }, [data]);
    if (isPending) return null;
    if (isPending) return <LinearProgress />;
    const onDragEnd = result => {
        const { destination, source } = result;