-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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 #30576 from MrMuzyk/michal/personal-info-page
feat: PersonalInfo Step
- Loading branch information
Showing
20 changed files
with
882 additions
and
191 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
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
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,51 @@ | ||
import PropTypes from 'prop-types'; | ||
import React from 'react'; | ||
import {View} from 'react-native'; | ||
import Icon from '@components/Icon'; | ||
import * as Expensicons from '@components/Icon/Expensicons'; | ||
import Text from '@components/Text'; | ||
import TextLink from '@components/TextLink'; | ||
import styles from '@styles/styles'; | ||
import CONST from '@src/CONST'; | ||
|
||
const propTypes = { | ||
/** Style for wrapping View */ | ||
// eslint-disable-next-line react/forbid-prop-types | ||
containerStyles: PropTypes.arrayOf(PropTypes.object), | ||
|
||
/** Translate function */ | ||
translate: PropTypes.func.isRequired, | ||
}; | ||
|
||
const defaultProps = { | ||
containerStyles: [], | ||
}; | ||
|
||
function HelpLinks({containerStyles, translate}) { | ||
return ( | ||
<View style={[styles.flexRow, styles.alignItemsCenter, containerStyles]}> | ||
<Icon src={Expensicons.QuestionMark} /> | ||
<View style={[styles.ml2, styles.dFlex, styles.flexRow]}> | ||
<TextLink | ||
style={[styles.textMicro]} | ||
href={CONST.BANK_ACCOUNT_PERSONAL_DOCUMENTATION_INFO_URL} | ||
> | ||
{translate('requestorStep.learnMore')} | ||
</TextLink> | ||
<Text style={[styles.textMicroSupporting]}>{' | '}</Text> | ||
<TextLink | ||
style={[styles.textMicro, styles.textLink]} | ||
href={CONST.PERSONAL_DATA_PROTECTION_INFO_URL} | ||
> | ||
{translate('requestorStep.isMyDataSafe')} | ||
</TextLink> | ||
</View> | ||
</View> | ||
); | ||
} | ||
|
||
HelpLinks.displayName = 'HelpLinks'; | ||
HelpLinks.propTypes = propTypes; | ||
HelpLinks.defaultProps = defaultProps; | ||
|
||
export default HelpLinks; |
Oops, something went wrong.