From fbf371cd27eee7c44b657e6949d9daf869d1b91a Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Wed, 6 Oct 2021 17:17:51 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Make=20AuthorizationRouter=20"re?= =?UTF-8?q?turn"=20the=20AuthorizationState=20instead=20of=20true?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/authorization/AuthorizationRouter.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/authorization/AuthorizationRouter.tsx b/frontend/src/components/authorization/AuthorizationRouter.tsx index 4d7a8b8..774d459 100644 --- a/frontend/src/components/authorization/AuthorizationRouter.tsx +++ b/frontend/src/components/authorization/AuthorizationRouter.tsx @@ -1,10 +1,10 @@ import * as React from "react" -import {useAuthorizationContext} from "../../contexts/authorization" +import {AuthorizationState, useAuthorizationContext} from "../../contexts/authorization" import {useSophonPath} from "../../hooks/useSophonPath" import {ResourceRouter, ResourceRouterProps} from "../routing/ResourceRouter" -export function AuthorizationRouter({...props}: ResourceRouterProps): JSX.Element { +export function AuthorizationRouter({...props}: ResourceRouterProps): JSX.Element { const path = useSophonPath() const authorization = useAuthorizationContext() @@ -13,7 +13,7 @@ export function AuthorizationRouter({...props}: ResourceRouterProps): JSX. return ( ) }