Fix master compile error

This commit is contained in:
Steve Faulkner 2020-08-10 12:02:18 -05:00
parent e28765d740
commit a5b824ebb5
1 changed files with 2 additions and 3 deletions

View File

@ -2,7 +2,7 @@ import "bootstrap/dist/css/bootstrap.css";
import { initializeIcons } from "office-ui-fabric-react/lib/Icons"; import { initializeIcons } from "office-ui-fabric-react/lib/Icons";
import React from "react"; import React from "react";
import * as ReactDOM from "react-dom"; import * as ReactDOM from "react-dom";
import { initializeConfiguration } from "../ConfigContext"; import { initializeConfiguration, configContext } from "../ConfigContext";
import { import {
NotebookViewerComponent, NotebookViewerComponent,
NotebookViewerComponentProps NotebookViewerComponentProps
@ -11,7 +11,6 @@ import { IGalleryItem, JunoClient } from "../Juno/JunoClient";
import * as GalleryUtils from "../Utils/GalleryUtils"; import * as GalleryUtils from "../Utils/GalleryUtils";
import { GalleryHeaderComponent } from "../Explorer/Controls/Header/GalleryHeaderComponent"; import { GalleryHeaderComponent } from "../Explorer/Controls/Header/GalleryHeaderComponent";
import { FileSystemUtil } from "../Explorer/Notebook/FileSystemUtil"; import { FileSystemUtil } from "../Explorer/Notebook/FileSystemUtil";
import { config } from "../Config";
const onInit = async () => { const onInit = async () => {
initializeIcons(); initializeIcons();
@ -22,7 +21,7 @@ const onInit = async () => {
let onBackClick: () => void; let onBackClick: () => void;
if (galleryViewerProps.selectedTab !== undefined) { if (galleryViewerProps.selectedTab !== undefined) {
backNavigationText = GalleryUtils.getTabTitle(galleryViewerProps.selectedTab); backNavigationText = GalleryUtils.getTabTitle(galleryViewerProps.selectedTab);
onBackClick = () => (window.location.href = `${config.hostedExplorerURL}gallery.html`); onBackClick = () => (window.location.href = `${configContext.hostedExplorerURL}gallery.html`);
} }
const hideInputs = notebookViewerProps.hideInputs; const hideInputs = notebookViewerProps.hideInputs;