Skip to content

Commit

Permalink
fixup NotebookViewer
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathansick committed Mar 27, 2024
1 parent 9a5efaf commit b10e887
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,14 @@ const StyledIframe = styled.iframe`
`;

export default function TimesSquareNotebookViewer({}) {
const { tsPageUrl } = React.useContext(TimesSquareParametersContext);
const htmlStatus = useHtmlStatus(tsPageUrl, parameters, displaySettings);
const { tsPageUrl, notebookParameters, displaySettings } = React.useContext(
TimesSquareParametersContext
);
const htmlStatus = useHtmlStatus(
tsPageUrl,
notebookParameters,
displaySettings
);

if (htmlStatus.error) {
return (
Expand Down

0 comments on commit b10e887

Please sign in to comment.