From d1d663b35f36ac3f9f1eaa41830d4dbe56b49e71 Mon Sep 17 00:00:00 2001 From: Kyle Shockey Date: Fri, 14 Apr 2017 18:39:31 -0700 Subject: [PATCH] Consume BaseLayout in UI standalone --- src/standalone/layout.jsx | 62 +++++---------------------------------- 1 file changed, 7 insertions(+), 55 deletions(-) diff --git a/src/standalone/layout.jsx b/src/standalone/layout.jsx index ba5b1c1c..9d367536 100644 --- a/src/standalone/layout.jsx +++ b/src/standalone/layout.jsx @@ -34,6 +34,7 @@ export default class StandaloneLayout extends React.Component { const Schemes = getComponent("schemes") const Topbar = getComponent("Topbar", true) + const BaseLayout = getComponent("BaseLayout", true) const OnlineValidatorBadge = getComponent("onlineValidatorBadge", true) const loadingStatus = specSelectors.loadingStatus() @@ -41,61 +42,12 @@ export default class StandaloneLayout extends React.Component { { Topbar ? : null } - { loadingStatus === "loading" && -
-

Loading...

-
- } - { loadingStatus === "failed" && -
-

Failed to load spec.

-
- } - { loadingStatus === "failedConfig" && -
-

Failed to load config.

-
- } - { loadingStatus === "success" && -
- - - - { info.count() ? ( - - ) : null } - - - { schemes && schemes.size || securityDefinitions ? ( -
- - { schemes && schemes.size ? ( - - ) : null } - { securityDefinitions ? ( - - ) : null } - -
- ) : null } - - - - - - - - - - - -
} - - - - - - + + + + + +
) }