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:
parent
7713a55919
commit
6bdfaf22c7
3 changed files with 3 additions and 13 deletions
|
@ -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()
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -47,6 +47,6 @@ export function ResourceRouter<Type>({selection, unselectedRoute: UnselectedRout
|
|||
<UnselectedRoute/>
|
||||
)
|
||||
},
|
||||
[selection],
|
||||
[selection, UnselectedRoute, SelectedRoute],
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue