1
Fork 0
mirror of https://github.com/Steffo99/sophon.git synced 2024-12-22 06:44:21 +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"
export interface AuthorizationAdminBoxProps {
}
export function AuthorizationAdminBox({}: AuthorizationAdminBoxProps): JSX.Element {
export function AuthorizationAdminBox(): JSX.Element {
const instance = useInstanceContext()
const authorization = useAuthorizationContext()

View file

@ -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) {

View file

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