6e13fcfbd3
users see welcome screen once and choose preference SETTINGS moved to redux took steps toward eliminating unwanted analytics in app based on preferences settings page update to privacy controls and copy persist welcome version default tv on cleanup clean up appstrings populate prefs app only wallet custody, app only router settings on startup welcome sync, 3p share sync, emojis bump redux cleanup fix app not building fix sync bug, remove tvWelcomeVersion cleanup disable internalshare setting while signed in
34 lines
1 KiB
JavaScript
34 lines
1 KiB
JavaScript
// @flow
|
|
import type { Node } from 'react';
|
|
import React, { Fragment } from 'react';
|
|
import classnames from 'classnames';
|
|
import SideNavigation from 'component/sideNavigation';
|
|
import Header from 'component/header';
|
|
|
|
export const MAIN_CLASS = 'main';
|
|
type Props = {
|
|
children: Node | Array<Node>,
|
|
className: ?string,
|
|
autoUpdateDownloaded: boolean,
|
|
isUpgradeAvailable: boolean,
|
|
authPage: boolean,
|
|
authenticated: boolean,
|
|
noHeader: boolean,
|
|
};
|
|
|
|
function Page(props: Props) {
|
|
const { children, className, authPage = false, authenticated, noHeader } = props;
|
|
const obscureSideNavigation = IS_WEB ? !authenticated : false;
|
|
|
|
return (
|
|
<Fragment>
|
|
{!noHeader && <Header authHeader={authPage} />}
|
|
<div className={classnames('main-wrapper__inner')}>
|
|
<main className={classnames(MAIN_CLASS, className, { 'main--full-width': authPage })}>{children}</main>
|
|
{!authPage && !noHeader && <SideNavigation obscureSideNavigation={obscureSideNavigation} />}
|
|
</div>
|
|
</Fragment>
|
|
);
|
|
}
|
|
|
|
export default Page;
|