From 6768211a781688323f19d5938047a9cc037e54f4 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Mon, 13 Jul 2020 20:26:30 +0000 Subject: [PATCH] Display card image link if user has one --- webclient/src/AdminMembers.js | 11 +++++++++++ webclient/src/Cards.js | 12 +++++++++++- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/webclient/src/AdminMembers.js b/webclient/src/AdminMembers.js index c6fb02a..934cac6 100644 --- a/webclient/src/AdminMembers.js +++ b/webclient/src/AdminMembers.js @@ -170,9 +170,20 @@ export function AdminMemberCards(props) { return (
Edit Member Cards
+
Add a Card
+ {result.member.card_photo ? +

+ + Print card image + +

+ : +

No card image, member photo missing!

+ } + Member Cards + {user.member.card_photo ? +

+ + Click here + to view your card image. +

+ : +

Upload a photo to generate a card image.

+ } + {user.cards.length ? user.cards.length > 1 ?