From 0218a2647d8e39a54f8cae81922374f3046dd111 Mon Sep 17 00:00:00 2001 From: Bojan Mojsilovic Date: Wed, 10 Jan 2024 19:11:47 +0100 Subject: [PATCH] Fix type warning --- src/contexts/SearchContext.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/contexts/SearchContext.tsx b/src/contexts/SearchContext.tsx index c1dc251..19fad5c 100644 --- a/src/contexts/SearchContext.tsx +++ b/src/contexts/SearchContext.tsx @@ -26,7 +26,6 @@ import { subscribeTo } from "../sockets"; import { nip19 } from "nostr-tools"; import { useAccountContext } from "./AccountContext"; import { npubToHex } from "../lib/keys"; -import { useProfileContext } from "./ProfileContext"; const recomendedUsers = [ '82341f882b6eabcd2ba7f1ef90aad961cf074af15b9ef44a09f9d2a8fbfbe6a2', // jack @@ -82,7 +81,7 @@ const initialData = { export const SearchContext = createContext(); -export function SearchProvider(props: { children: number | boolean | Node | JSX.ArrayElement | JSX.FunctionElement | (string & {}) | null | undefined; }) { +export function SearchProvider(props: { children: JSX.Element }) { const account = useAccountContext();