diff --git a/.storybook/preview.js b/.storybook/preview.js index a07c98f125a..3eb4b511eee 100644 --- a/.storybook/preview.js +++ b/.storybook/preview.js @@ -19,13 +19,13 @@ addParameters({ }); addDecorator(function PaddingDecorator(story) { - const storyProps = story().storyProps; + const storyProps = story().props; const containsFrame = storyProps && (storyProps.hasOwnProperty('topBar') || storyProps.hasOwnProperty('navigation') || storyProps.hasOwnProperty('data-has-frame')); - + console.log({storyProps}); return containsFrame ? ( story() ) : ( diff --git a/playground/DetailsPage.tsx b/playground/DetailsPage.tsx index 0b87361867c..057e25ce8a3 100644 --- a/playground/DetailsPage.tsx +++ b/playground/DetailsPage.tsx @@ -211,12 +211,12 @@ export function DetailsPage() { searchResults={searchResultsMarkup} onSearchResultsDismiss={handleSearchResultsDismiss} onNavigationToggle={toggleMobileNavigationActive} - contextControl={contextControlMarkup} + // contextControl={contextControlMarkup} /> ); // ---- Navigation ---- const navigationMarkup = ( - +