diff --git a/internal_packages/onboarding/lib/onboarding-root.jsx b/internal_packages/onboarding/lib/onboarding-root.jsx index d58de0ab9..d964a46b5 100644 --- a/internal_packages/onboarding/lib/onboarding-root.jsx +++ b/internal_packages/onboarding/lib/onboarding-root.jsx @@ -66,7 +66,10 @@ export default class OnboardingRoot extends React.Component { return (
- + { } } + let backButton = ( +
+ +
+ ) + if (props.pageDepth > 1 && !props.allowMoveBack) { + backButton = null; + } + return (
{ WebkitAppRegion: "drag", }} > -
- -
+ {backButton}
) } PageTopBar.propTypes = { pageDepth: React.PropTypes.number, + allowMoveBack: React.PropTypes.bool, }; export default PageTopBar;