From 00927cd914bee59cb8426f852bdc68e142d957b8 Mon Sep 17 00:00:00 2001 From: Georgia Monahan Date: Mon, 30 Jan 2023 10:14:39 -0800 Subject: [PATCH 01/45] Add skeleton for component --- src/pages/signin/SignInPageLayout/Footer.js | 33 +++++++++++++++++++++ src/pages/signin/SignInPageLayout/index.js | 6 +++- 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 src/pages/signin/SignInPageLayout/Footer.js diff --git a/src/pages/signin/SignInPageLayout/Footer.js b/src/pages/signin/SignInPageLayout/Footer.js new file mode 100644 index 000000000000..1ba307e6c056 --- /dev/null +++ b/src/pages/signin/SignInPageLayout/Footer.js @@ -0,0 +1,33 @@ +import {Pressable} from 'react-native'; +import React from 'react'; +import _ from 'underscore'; +import styles from '../../../styles/styles'; +import * as StyleUtils from '../../../styles/StyleUtils'; +import * as Link from '../../../libs/actions/Link'; +import SVGImage from '../../../components/SVGImage'; + +const backgroundStyle = StyleUtils.getLoginPagePromoStyle(); + +const Footer = () => ( + { + Link.openExternalLink(backgroundStyle.redirectUri); + }} + disabled={_.isEmpty(backgroundStyle.redirectUri)} + > + + +); + +Footer.displayName = 'Footer'; + +export default Footer; diff --git a/src/pages/signin/SignInPageLayout/index.js b/src/pages/signin/SignInPageLayout/index.js index c165b336bb3d..49fde2ee3229 100644 --- a/src/pages/signin/SignInPageLayout/index.js +++ b/src/pages/signin/SignInPageLayout/index.js @@ -2,6 +2,7 @@ import React from 'react'; import {View} from 'react-native'; import PropTypes from 'prop-types'; import SignInPageContent from './SignInPageContent'; +import Footer from './Footer'; import withWindowDimensions, {windowDimensionsPropTypes} from '../../../components/withWindowDimensions'; import styles from '../../../styles/styles'; import SignInPageGraphics from './SignInPageGraphics'; @@ -39,7 +40,10 @@ const SignInPageLayout = (props) => { {props.children} {!props.isSmallScreenWidth && ( - + <> + +