1
Fork 0
mirror of https://github.com/Steffo99/sophon.git synced 2024-12-22 14:54:22 +00:00

🐛 Fix React warnings

This commit is contained in:
Steffo 2021-10-06 16:41:47 +02:00
parent 7713a55919
commit 6bdfaf22c7
3 changed files with 3 additions and 13 deletions

View file

@ -5,12 +5,7 @@ import {useAuthorizationContext} from "../../contexts/authorization"
import {useInstanceContext} from "../../contexts/instance" import {useInstanceContext} from "../../contexts/instance"
export interface AuthorizationAdminBoxProps { export function AuthorizationAdminBox(): JSX.Element {
}
export function AuthorizationAdminBox({}: AuthorizationAdminBoxProps): JSX.Element {
const instance = useInstanceContext() const instance = useInstanceContext()
const authorization = useAuthorizationContext() const authorization = useAuthorizationContext()

View file

@ -4,12 +4,7 @@ import {useInstanceContext} from "../../contexts/instance"
import {ErrorBox} from "../errors/ErrorBox" import {ErrorBox} from "../errors/ErrorBox"
export interface InstanceDescriptionBoxProps { export function InstanceDescriptionBox(): JSX.Element | null {
}
export function InstanceDescriptionBox({}: InstanceDescriptionBoxProps): JSX.Element | null {
const instance = useInstanceContext() const instance = useInstanceContext()
if(!instance) { if(!instance) {

View file

@ -47,6 +47,6 @@ export function ResourceRouter<Type>({selection, unselectedRoute: UnselectedRout
<UnselectedRoute/> <UnselectedRoute/>
) )
}, },
[selection], [selection, UnselectedRoute, SelectedRoute],
) )
} }