removed unneeded property refetchData
This commit is contained in:
parent
6757ee256d
commit
7b317afb78
1 changed files with 1 additions and 2 deletions
|
@ -17,7 +17,6 @@ interface Iprops {
|
|||
className?: string;
|
||||
favItemIds: Set<number>;
|
||||
setFavItemIds: (favItemIds: Set<number>) => void;
|
||||
refetchData: () => void;
|
||||
};
|
||||
|
||||
function PhotoSwipe(props: Iprops) {
|
||||
|
@ -110,7 +109,7 @@ function PhotoSwipe(props: Iprops) {
|
|||
}
|
||||
|
||||
const onFavClick = async (file) => {
|
||||
const { favItemIds, refetchData, setFavItemIds } = props;
|
||||
const { favItemIds, setFavItemIds } = props;
|
||||
if (!isInFav(file)) {
|
||||
favItemIds.add(file.id);
|
||||
await addToFavorites(file);
|
||||
|
|
Loading…
Add table
Reference in a new issue