Skip to content

⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.

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

daniel31x13565d524f99ad
diff --git a/packages/router/collections.tsx b/packages/router/collections.tsx
index b971c51b..b7502155 100644
--- a/packages/router/collections.tsx
+++ b/packages/router/collections.tsx
@@ -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;
}) => {
diff --git a/packages/router/links.tsx b/packages/router/links.tsx
index fe5c269c..e797b298 100644
--- a/packages/router/links.tsx
+++ b/packages/router/links.tsx
@@ -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;
}) => {