| | |
| | | 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, |
| | |
| | | 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 () => { |
| | |
| | | // eslint-disable-next-line react-hooks/exhaustive-deps |
| | | }, [data]); |
| | | |
| | | if (isPending) return null; |
| | | if (isPending) return <LinearProgress />; |
| | | |
| | | const onDragEnd = result => { |
| | | const { destination, source } = result; |