Removed published, favourites tabs for hosted gallery (#457)

* added hosted explorer check

* added check for non null container
This commit is contained in:
Srinath Narayanan
2021-03-01 05:24:11 -08:00
committed by GitHub
parent 10664162c7
commit 56b5a9861b
2 changed files with 4 additions and 30 deletions

View File

@@ -161,8 +161,10 @@ export class GalleryViewerComponent extends React.Component<GalleryViewerCompone
)
);
tabs.push(this.createFavoritesTab(GalleryTab.Favorites, this.state.favoriteNotebooks));
tabs.push(this.createPublishedNotebooksTab(GalleryTab.Published, this.state.publishedNotebooks));
if (this.props.container) {
tabs.push(this.createFavoritesTab(GalleryTab.Favorites, this.state.favoriteNotebooks));
tabs.push(this.createPublishedNotebooksTab(GalleryTab.Published, this.state.publishedNotebooks));
}
const pivotProps: IPivotProps = {
onLinkClick: this.onPivotChange,