fix: update Alert type to any in collections and links components

This commit is contained in:
daniel31x13
2026-03-24 11:21:50 -04:00
parent 78db1fa174
commit 565d524f99
2 changed files with 4 additions and 6 deletions

View File

@@ -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;
}) => {

View File

@@ -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;
}) => {