mirror of
https://github.com/linkwarden/linkwarden.git
synced 2026-04-18 12:09:44 +00:00
fix: update Alert type to any in collections and links components
This commit is contained in:
@@ -6,7 +6,6 @@ import {
|
||||
import { useSession } from "next-auth/react";
|
||||
import type toaster from "react-hot-toast";
|
||||
import { TFunction } from "next-i18next";
|
||||
import type { Alert as Alert_ } from "react-native";
|
||||
|
||||
const getCollectionSubtreeIds = (collections: any[] = [], rootId: number) => {
|
||||
const byParent = new Map<number, number[]>();
|
||||
@@ -185,7 +184,7 @@ const useDeleteCollection = ({
|
||||
t,
|
||||
}: {
|
||||
auth?: MobileAuth;
|
||||
Alert?: typeof Alert_;
|
||||
Alert?: any;
|
||||
toast?: typeof toaster;
|
||||
t?: TFunction;
|
||||
}) => {
|
||||
|
||||
@@ -22,7 +22,6 @@ import getFormatFromContentType from "@linkwarden/lib/getFormatFromContentType";
|
||||
import getLinkTypeFromFormat from "@linkwarden/lib/getLinkTypeFromFormat";
|
||||
import type toaster from "react-hot-toast";
|
||||
import { TFunction } from "next-i18next";
|
||||
import type { Alert as Alert_ } from "react-native";
|
||||
|
||||
const useLinks = (params: LinkRequestQuery = {}, auth?: MobileAuth) => {
|
||||
const sort =
|
||||
@@ -388,7 +387,7 @@ const useAddLink = ({
|
||||
t,
|
||||
}: {
|
||||
auth?: MobileAuth;
|
||||
Alert?: typeof Alert_;
|
||||
Alert?: any;
|
||||
toast?: typeof toaster;
|
||||
t?: TFunction;
|
||||
}) => {
|
||||
@@ -556,7 +555,7 @@ const useUpdateLink = ({
|
||||
t,
|
||||
}: {
|
||||
auth?: MobileAuth;
|
||||
Alert?: typeof Alert_;
|
||||
Alert?: any;
|
||||
toast?: typeof toaster;
|
||||
t?: TFunction;
|
||||
}) => {
|
||||
@@ -713,7 +712,7 @@ const useDeleteLink = ({
|
||||
t,
|
||||
}: {
|
||||
auth?: MobileAuth;
|
||||
Alert?: typeof Alert_;
|
||||
Alert?: any;
|
||||
toast?: typeof toaster;
|
||||
t?: TFunction;
|
||||
}) => {
|
||||
|
||||
Reference in New Issue
Block a user