Remove SplashScreenComponentAdapter (#440)

Merge SplashScreenComponentAdapter and SplashScreenComponent into one SplashScreen React component.
This commit is contained in:
Jordi Bunster
2021-02-23 11:15:57 -08:00
committed by GitHub
parent f0c82a430b
commit e8e5eb55cb
8 changed files with 153 additions and 207 deletions

View File

@@ -30,7 +30,7 @@ import "./Explorer/Panes/GraphNewVertexPane.less";
import "./Explorer/Tabs/QueryTab.less";
import "./Explorer/Controls/TreeComponent/treeComponent.less";
import "./Explorer/Controls/Accordion/AccordionComponent.less";
import "./Explorer/SplashScreen/SplashScreenComponent.less";
import "./Explorer/SplashScreen/SplashScreen.less";
import "./Explorer/Controls/Notebook/NotebookTerminalComponent.less";
// Image Dependencies
@@ -68,6 +68,7 @@ import { useKnockoutExplorer } from "./hooks/useKnockoutExplorer";
import { useSidePanel } from "./hooks/useSidePanel";
import { NotificationConsoleComponent } from "./Explorer/Menus/NotificationConsole/NotificationConsoleComponent";
import { PanelContainerComponent } from "./Explorer/Panes/PanelContainerComponent";
import { SplashScreen } from "./Explorer/SplashScreen/SplashScreen";
initializeIcons();
@@ -87,7 +88,7 @@ const App: React.FunctionComponent = () => {
closeSidePanel,
};
const config = useConfig();
useKnockoutExplorer(config?.platform, explorerParams);
const explorer = useKnockoutExplorer(config?.platform, explorerParams);
return (
<div className="flexContainer">
@@ -275,7 +276,7 @@ const App: React.FunctionComponent = () => {
data-bind="visible: !isRefreshingExplorer() && tabsManager.openedTabs().length === 0"
>
<form className="connectExplorerFormContainer">
<div className="connectExplorer" data-bind="react: splashScreenAdapter" />
<SplashScreen explorer={explorer} />
</form>
</div>
<div