diff --git a/src/app/app.tsx b/src/app/app.tsx index 506ca70c3..682d1e587 100644 --- a/src/app/app.tsx +++ b/src/app/app.tsx @@ -22,7 +22,6 @@ import { LineSettingsModal, ClientSettingsModal, } from "./common/modals/settings"; -import { TosModal } from "./common/modals/modals"; import { MainSideBar } from "./sidebar/sidebar"; import { DisconnectedModal, ClientStopModal, ModalsProvider } from "./common/modals/modals"; import { ErrorBoundary } from "./common/error/errorboundary"; @@ -121,9 +120,6 @@ class App extends React.Component<{}, {}> { - - - ; + } + return modals.map((ModalComponent, index) => ); } @@ -231,6 +235,7 @@ class TosModal extends React.Component<{}, {}> { @boundMethod acceptTos(): void { GlobalCommandRunner.clientAcceptTos(); + GlobalModel.modalsModel.popModal(); } @boundMethod @@ -246,10 +251,9 @@ class TosModal extends React.Component<{}, {}> { let cdata: ClientDataType = GlobalModel.clientData.get(); return ( - - - - + + + Welcome to Wave Terminal! Lets set everything for you @@ -323,7 +327,7 @@ class TosModal extends React.Component<{}, {}> { - + ); } }