From 6bdfaf22c7b15fd27ca14042ee58755bdd276134 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Wed, 6 Oct 2021 16:41:47 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20React=20warnings?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/authorization/AuthorizationAdminBox.tsx | 7 +------ .../src/components/instance/InstanceDescriptionBox.tsx | 7 +------ frontend/src/components/routing/ResourceRouter.tsx | 2 +- 3 files changed, 3 insertions(+), 13 deletions(-) diff --git a/frontend/src/components/authorization/AuthorizationAdminBox.tsx b/frontend/src/components/authorization/AuthorizationAdminBox.tsx index dc1061c..d92cb82 100644 --- a/frontend/src/components/authorization/AuthorizationAdminBox.tsx +++ b/frontend/src/components/authorization/AuthorizationAdminBox.tsx @@ -5,12 +5,7 @@ import {useAuthorizationContext} from "../../contexts/authorization" import {useInstanceContext} from "../../contexts/instance" -export interface AuthorizationAdminBoxProps { - -} - - -export function AuthorizationAdminBox({}: AuthorizationAdminBoxProps): JSX.Element { +export function AuthorizationAdminBox(): JSX.Element { const instance = useInstanceContext() const authorization = useAuthorizationContext() diff --git a/frontend/src/components/instance/InstanceDescriptionBox.tsx b/frontend/src/components/instance/InstanceDescriptionBox.tsx index e01328a..3929b95 100644 --- a/frontend/src/components/instance/InstanceDescriptionBox.tsx +++ b/frontend/src/components/instance/InstanceDescriptionBox.tsx @@ -4,12 +4,7 @@ import {useInstanceContext} from "../../contexts/instance" import {ErrorBox} from "../errors/ErrorBox" -export interface InstanceDescriptionBoxProps { - -} - - -export function InstanceDescriptionBox({}: InstanceDescriptionBoxProps): JSX.Element | null { +export function InstanceDescriptionBox(): JSX.Element | null { const instance = useInstanceContext() if(!instance) { diff --git a/frontend/src/components/routing/ResourceRouter.tsx b/frontend/src/components/routing/ResourceRouter.tsx index 295e533..03e6578 100644 --- a/frontend/src/components/routing/ResourceRouter.tsx +++ b/frontend/src/components/routing/ResourceRouter.tsx @@ -47,6 +47,6 @@ export function ResourceRouter({selection, unselectedRoute: UnselectedRout ) }, - [selection], + [selection, UnselectedRoute, SelectedRoute], ) }