Skip to content

Commit

Permalink
Merge pull request #2041 from tf/hide-info-button
Browse files Browse the repository at this point in the history
Add theme option to hide legal info button
  • Loading branch information
tf authored Dec 14, 2023
2 parents 4494d5a + dbcbefe commit c1e5483
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
useOnUnmuteMedia,
usePhonePlatform,
useShareProviders,
useTheme,
utils
} from 'pageflow-scrolled/frontend';

Expand All @@ -31,6 +32,7 @@ export function DefaultNavigation({configuration}) {
const currentChapter = useCurrentChapter();
const isPhonePlatform = usePhonePlatform();
const shareProviders = useShareProviders({isPhonePlatform});
const theme = useTheme();

useScrollPosition(
({prevPos, currPos}) => {
Expand Down Expand Up @@ -134,7 +136,7 @@ export function DefaultNavigation({configuration}) {

<div className={classNames(styles.contextIcons)}>
{!configuration.hideToggleMuteButton && <ToggleMuteButton />}
<LegalInfoMenu tooltipOffset={hideSharingButton ? -40 : 0} />
{!theme.options.hideLegalInfoButton &&<LegalInfoMenu tooltipOffset={hideSharingButton ? -40 : 0} />}
{!hideSharingButton && <SharingMenu shareProviders={shareProviders} />}
</div>
</div>
Expand Down

0 comments on commit c1e5483

Please sign in to comment.