Display card image link if user has one

This commit is contained in:
2020-07-13 20:26:30 +00:00
parent a849b5f887
commit 6768211a78
2 changed files with 22 additions and 1 deletions
+11
View File
@@ -170,9 +170,20 @@ export function AdminMemberCards(props) {
return (
<div>
<Header size='medium'>Edit Member Cards</Header>
<Form onSubmit={handleSubmit}>
<Header size='small'>Add a Card</Header>
{result.member.card_photo ?
<p>
<a href={staticUrl + '/' + result.member.card_photo} target='_blank'>
Print card image
</a>
</p>
:
<p>No card image, member photo missing!</p>
}
<Form.Group widths='equal'>
<Form.Input
label='Card Number'