From 2e1584370241e65558fe761ba5753fa5f6128869 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Wed, 6 Oct 2021 17:17:16 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Export=20more=20types=20from=20c?= =?UTF-8?q?ontexts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/contexts/authorization.tsx | 4 ++-- frontend/src/contexts/instance.tsx | 2 +- frontend/src/contexts/theme.tsx | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/src/contexts/authorization.tsx b/frontend/src/contexts/authorization.tsx index 43e90d8..b6afb98 100644 --- a/frontend/src/contexts/authorization.tsx +++ b/frontend/src/contexts/authorization.tsx @@ -57,9 +57,9 @@ type AuthorizationBrowse = { // Composition -type AuthorizationState = AuthorizationUnselected | AuthorizationLoggingIn | AuthorizationLoggedIn | AuthorizationGuest +export type AuthorizationState = AuthorizationUnselected | AuthorizationLoggingIn | AuthorizationLoggedIn | AuthorizationGuest type AuthorizationAction = AuthorizationClear | AuthorizationLogInStart | AuthorizationLogInSuccess | AuthorizationLogInFailure | AuthorizationBrowse -type AuthorizationContextData = ContextData | undefined +export type AuthorizationContextData = ContextData | undefined // Definitions diff --git a/frontend/src/contexts/instance.tsx b/frontend/src/contexts/instance.tsx index db8e675..525633c 100644 --- a/frontend/src/contexts/instance.tsx +++ b/frontend/src/contexts/instance.tsx @@ -31,7 +31,7 @@ type InstanceDeselect = { // Composition -type InstanceState = InstanceSelected | InstanceNotSelected +export type InstanceState = InstanceSelected | InstanceNotSelected type InstanceAction = InstanceSelect | InstanceDeselect export type InstanceContextData = ContextData | undefined diff --git a/frontend/src/contexts/theme.tsx b/frontend/src/contexts/theme.tsx index 05e668b..e814fc5 100644 --- a/frontend/src/contexts/theme.tsx +++ b/frontend/src/contexts/theme.tsx @@ -25,9 +25,9 @@ type ThemeReset = { // Composition -type ThemeState = ThemeSelected +export type ThemeState = ThemeSelected type ThemeAction = ThemeSet | ThemeReset -type ThemeContextData = ContextData | undefined +export type ThemeContextData = ContextData | undefined // Definitions