-
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 #32106 from pasyukevich/feature/fraud-design-update
update wallet banner UI, wallet red dot condition
- Loading branch information
Showing
9 changed files
with
90 additions
and
64 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 was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
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 useTheme from '@styles/themes/useTheme'; | ||
import useThemeStyles from '@styles/useThemeStyles'; | ||
|
||
const propTypes = { | ||
title: PropTypes.string.isRequired, | ||
description: PropTypes.string.isRequired, | ||
}; | ||
|
||
function RedDotCardSection({title, description}) { | ||
const theme = useTheme(); | ||
const styles = useThemeStyles(); | ||
|
||
return ( | ||
<View style={[styles.p5, styles.flexRow, styles.alignItemsStart]}> | ||
<View style={styles.offlineFeedback.errorDot}> | ||
<Icon | ||
src={Expensicons.DotIndicator} | ||
fill={theme.danger} | ||
/> | ||
</View> | ||
<View style={[styles.flexRow, styles.flexShrink1]}> | ||
<View style={styles.flexShrink1}> | ||
<Text style={[styles.walletRedDotSectionTitle, styles.mb1]}>{title}</Text> | ||
<Text styles={styles.walletRedDotSectionText}>{description}</Text> | ||
</View> | ||
</View> | ||
</View> | ||
); | ||
} | ||
|
||
RedDotCardSection.propTypes = propTypes; | ||
RedDotCardSection.displayName = 'RedDotCardSection'; | ||
|
||
export default RedDotCardSection; |
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