From 1dc740c49de13cb30ce30e87d972db4063f9dba8 Mon Sep 17 00:00:00 2001 From: Hatton Date: Mon, 23 Dec 2024 10:05:16 -0700 Subject: [PATCH 1/5] chore: Have multi-book stories enable app bar toggle --- src/stories/BloomPlayerIframe.tsx | 12 ++++++++++-- src/stories/multiBook.stories.tsx | 7 +++++++ src/stories/navigation.stories.tsx | 6 ++++++ 3 files changed, 23 insertions(+), 2 deletions(-) diff --git a/src/stories/BloomPlayerIframe.tsx b/src/stories/BloomPlayerIframe.tsx index 5342d0f..12a3341 100644 --- a/src/stories/BloomPlayerIframe.tsx +++ b/src/stories/BloomPlayerIframe.tsx @@ -2,7 +2,12 @@ import React, { useState, useEffect } from "react"; // Use this in stories where you need to more closely simulate what a host will see as they use bloomplayer.htm. -export function BloomPlayerIframe({ bookUrl, bookPageIndex, showBackButton }) { +export function BloomPlayerIframe({ + bookUrl, + bookPageIndex, + showBackButton, + allowToggleAppBar, +}) { if (!useBuildIsReady()) { return (
@@ -12,9 +17,12 @@ export function BloomPlayerIframe({ bookUrl, bookPageIndex, showBackButton }) { } const backButtonParam = showBackButton ? "&showBackButton=true" : ""; + const allowToggleAppBarParam = allowToggleAppBar + ? "&allowToggleAppBar=true" + : ""; return (