From d094e1f7edeb5aee626035b598b79f49d512beb9 Mon Sep 17 00:00:00 2001 From: Gert Hengeveld Date: Fri, 19 Jul 2024 13:14:05 +0200 Subject: [PATCH] Remove unnecessary key prop --- src/Panel.tsx | 4 +--- src/utils/graphQLClient.tsx | 9 +-------- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/src/Panel.tsx b/src/Panel.tsx index b73101eb..faa85e9c 100644 --- a/src/Panel.tsx +++ b/src/Panel.tsx @@ -11,7 +11,6 @@ import { IS_OFFLINE, IS_OUTDATED, LOCAL_BUILD_PROGRESS, - PANEL_ID, REMOVE_ADDON, TELEMETRY, } from "./constants"; @@ -96,7 +95,7 @@ export const Panel = ({ active, api }: PanelProps) => { const fetch = useChannelFetch(); const withProviders = (children: React.ReactNode) => ( - + { if (!accessToken) { return withProviders( ) => export const GraphQLClientProvider = ({ children, value = createClient(), - ...rest }: { children: React.ReactNode; value?: Client; -}) => { - return ( - - {children} - - ); -}; +}) => {children};