Skip to content

Commit

Permalink
Button visibility check
Browse files Browse the repository at this point in the history
  • Loading branch information
SameeraMadushan committed Feb 27, 2021
1 parent 0f76538 commit 80b4b10
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/components/HeaderWithCloseButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,16 @@ const HeaderWithCloseButton = props => (
>
<Header title={props.title} textSize={props.textSize} />
<View style={[styles.reportOptions, styles.flexRow]}>
<TouchableOpacity
onPress={props.onDownloadButtonPress}
style={[styles.touchableButtonImage]}
>
<Icon src={Download} />
</TouchableOpacity>
{
props.title === 'Attachment' && (
<TouchableOpacity
onPress={props.onDownloadButtonPress}
style={[styles.touchableButtonImage]}
>
<Icon src={Download} />
</TouchableOpacity>
)
}

<TouchableOpacity
onPress={props.onCloseButtonPress}
Expand Down

0 comments on commit 80b4b10

Please sign in to comment.