@@ -10,9 +10,6 @@ import * as Expensicons from './Icon/Expensicons';
1010import PressableWithoutFeedback from './Pressable/PressableWithoutFeedback' ;
1111
1212type ReceiptEmptyStateProps = {
13- /** Whether or not there is an error */
14- hasError ?: boolean ;
15-
1613 /** Callback to be called on onPress */
1714 onPress ?: ( ) => void ;
1815
@@ -32,7 +29,7 @@ type ReceiptEmptyStateProps = {
3229} ;
3330
3431// Returns an SVG icon indicating that the user should attach a receipt
35- function ReceiptEmptyState ( { hasError = false , onPress, disabled = false , isThumbnail = false , isInMoneyRequestView = false , shouldUseFullHeight = false , style} : ReceiptEmptyStateProps ) {
32+ function ReceiptEmptyState ( { onPress, disabled = false , isThumbnail = false , isInMoneyRequestView = false , shouldUseFullHeight = false , style} : ReceiptEmptyStateProps ) {
3633 const styles = useThemeStyles ( ) ;
3734 const { translate} = useLocalize ( ) ;
3835 const theme = useTheme ( ) ;
@@ -43,7 +40,6 @@ function ReceiptEmptyState({hasError = false, onPress, disabled = false, isThumb
4340 styles . justifyContentCenter ,
4441 styles . moneyRequestViewImage ,
4542 isThumbnail && ! isInMoneyRequestView ? styles . moneyRequestAttachReceiptThumbnail : styles . moneyRequestAttachReceipt ,
46- hasError && styles . borderColorDanger ,
4743 shouldUseFullHeight && styles . receiptEmptyStateFullHeight ,
4844 style ,
4945 ] ;
0 commit comments