Skip to content

Commit

Permalink
fix use-dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
plasticviking committed Oct 23, 2024
1 parent df31006 commit 58f2fc9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/src/UI/Overlay/TileCache/TileCacheDownloadProgress.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import { IconButton, LinearProgress } from '@mui/material';
import { useSelector } from 'utils/use_selector';
import { shallowEqual, useDispatch } from 'react-redux';
import { useDispatch, useSelector } from 'utils/use_selector';
import { shallowEqual } from 'react-redux';
import { StopCircleOutlined } from '@mui/icons-material';
import TileCache from 'state/actions/cache/TileCache';

const TileCacheDownloadProgress = () => {
const handleStopDownload = (repository: string) => {
// @ts-ignore
dispatch(TileCache.deleteRepository(repository));
};
const dispatch = useDispatch();
Expand Down

0 comments on commit 58f2fc9

Please sign in to comment.