From dbcbefe95c3e98cc22a7d9d2e4955397a7c7d427 Mon Sep 17 00:00:00 2001 From: Tim Fischbach Date: Thu, 14 Dec 2023 13:43:09 +0100 Subject: [PATCH] Add theme option to hide legal info button REDMINE-20511 --- .../src/widgets/defaultNavigation/DefaultNavigation.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/entry_types/scrolled/package/src/widgets/defaultNavigation/DefaultNavigation.js b/entry_types/scrolled/package/src/widgets/defaultNavigation/DefaultNavigation.js index 6113366ac..ac4e23ed5 100644 --- a/entry_types/scrolled/package/src/widgets/defaultNavigation/DefaultNavigation.js +++ b/entry_types/scrolled/package/src/widgets/defaultNavigation/DefaultNavigation.js @@ -9,6 +9,7 @@ import { useOnUnmuteMedia, usePhonePlatform, useShareProviders, + useTheme, utils } from 'pageflow-scrolled/frontend'; @@ -31,6 +32,7 @@ export function DefaultNavigation({configuration}) { const currentChapter = useCurrentChapter(); const isPhonePlatform = usePhonePlatform(); const shareProviders = useShareProviders({isPhonePlatform}); + const theme = useTheme(); useScrollPosition( ({prevPos, currPos}) => { @@ -134,7 +136,7 @@ export function DefaultNavigation({configuration}) {
{!configuration.hideToggleMuteButton && } - + {!theme.options.hideLegalInfoButton &&} {!hideSharingButton && }