From 63e7391981fca437efba221ff4babdb9d6fdac5b Mon Sep 17 00:00:00 2001 From: Brandon Millman Date: Wed, 16 May 2018 13:47:50 -0700 Subject: Add portal layout component --- packages/website/ts/components/portal/portal.tsx | 67 +++++++++++++----------- 1 file changed, 36 insertions(+), 31 deletions(-) (limited to 'packages/website/ts/components/portal') diff --git a/packages/website/ts/components/portal/portal.tsx b/packages/website/ts/components/portal/portal.tsx index aa4392935..ce7911e10 100644 --- a/packages/website/ts/components/portal/portal.tsx +++ b/packages/website/ts/components/portal/portal.tsx @@ -105,6 +105,7 @@ const styles: Styles = { }, backButton: { height: BACK_BUTTON_HEIGHT, + paddingTop: 10, backgroundColor: colors.white, borderRadius: BACK_BUTTON_HEIGHT, boxShadow: `0px 4px 6px ${colors.walletBoxShadow}`, @@ -203,36 +204,17 @@ export class Portal extends React.Component { style={{ backgroundColor: colors.lightestGrey }} />
-
-
-
- - - - -
-
-
- - - - -
-
+ + + + {
); } + private _renderWalletAndRelayerIndex(): React.ReactNode { + return ; + } + private _renderMenuAndAccountManagement(routeComponentProps: RouteComponentProps): React.ReactNode { + return ; + } private _renderMenu(routeComponentProps: RouteComponentProps): React.ReactNode { return (
@@ -480,7 +468,7 @@ const BackButton = (props: BackButtonProps) => { return (
-
+
@@ -492,3 +480,20 @@ const BackButton = (props: BackButtonProps) => {
); }; + +interface PortalLayoutProps { + left: React.ReactNode; + right: React.ReactNode; +} +const PortalLayout = (props: PortalLayoutProps) => { + return ( +
+
+
{props.left}
+
+
+ {props.right} +
+
+ ); +}; -- cgit