-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10816 from Expensify/update-staging-from-main
Update version to 1.1.97-2 on staging
- Loading branch information
Showing
19 changed files
with
627 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import {View} from 'react-native'; | ||
import Text from '../Text'; | ||
import TextLink from '../TextLink'; | ||
import Icon from '../Icon'; | ||
import * as Expensicons from '../Icon/Expensicons'; | ||
import styles from '../../styles/styles'; | ||
import variables from '../../styles/variables'; | ||
import withLocalize, {withLocalizePropTypes} from '../withLocalize'; | ||
|
||
const propTypes = { | ||
/** Callback function to indicate that PDF password form should be shown */ | ||
onShowForm: PropTypes.func.isRequired, | ||
|
||
...withLocalizePropTypes, | ||
}; | ||
|
||
const PDFInfoMessage = props => ( | ||
<View style={styles.alignItemsCenter}> | ||
<Icon | ||
src={Expensicons.EyeDisabled} | ||
width={variables.iconSizeSuperLarge} | ||
height={variables.iconSizeSuperLarge} | ||
/> | ||
<Text style={[styles.h1, styles.mb3, styles.mt3]}> | ||
{props.translate('attachmentView.pdfPasswordForm.title')} | ||
</Text> | ||
<Text>{props.translate('attachmentView.pdfPasswordForm.infoText')}</Text> | ||
<Text> | ||
{props.translate('attachmentView.pdfPasswordForm.beforeLinkText')} | ||
<TextLink onPress={props.onShowForm}> | ||
{` ${props.translate('attachmentView.pdfPasswordForm.linkText')} `} | ||
</TextLink> | ||
{props.translate('attachmentView.pdfPasswordForm.afterLinkText')} | ||
</Text> | ||
</View> | ||
); | ||
|
||
PDFInfoMessage.propTypes = propTypes; | ||
PDFInfoMessage.displayName = 'PDFInfoMessage'; | ||
|
||
export default withLocalize(PDFInfoMessage); |
Oops, something went wrong.