Added notebooksDownBanner flight (#1146)

* set isNotebookEnabled to true

* lint and format fixes

* modified shell enabled

* added notebooks down banner flight

* fixed typo
This commit is contained in:
Srinath Narayanan
2021-10-22 00:57:52 -07:00
committed by GitHub
parent 8aa764079a
commit 361ac45e52
7 changed files with 7 additions and 6421 deletions

View File

@@ -1234,7 +1234,7 @@ export default class Explorer {
await useNotebook.getState().refreshNotebooksEnabledStateForAccount();
// TODO: remove reference to isNotebookEnabled and isNotebooksEnabledForAccount
const isNotebookEnabled = true;
const isNotebookEnabled = userContext.features.notebooksDownBanner || userContext.features.phoenix;
useNotebook.getState().setIsNotebookEnabled(isNotebookEnabled);
useNotebook.getState().setIsShellEnabled(userContext.features.phoenix && isPublicInternetAccessAllowed());