Commit 7c4e3608 authored by Stephanie Kirtiadi's avatar Stephanie Kirtiadi
Browse files

Use separate tshirt pack options images for both single and monthly.

Images for options follow the tshirt pack images for now because
there is only 1 option for T-Shirt pack. Addition of options
need code change in the future.

Issue #48273
parent 9260a381
......@@ -4,10 +4,11 @@ export function PerkImage(props) {
const {perk, perkOption, frequency} = props;
let imageSource = perk.image[frequency];
if (perk.options !== null) {
for (const option of perk.options) {
if (option.name == perkOption) {
imageSource = option.image;
imageSource = option.image[frequency];
}
}
}
......
......@@ -110,7 +110,10 @@
{
'name': 'strength-in-numbers',
'friendlyName': 'Strength in Numbers',
'image': '/static/images/donate/t-shirt-pack-take-back-internet.png'
'image': {
'single': `{{ this.tshirt_pack_perk_single_image }}`,
'monthly': `{{ this.tshirt_pack_perk_monthly_image }}`
}
},
],
'requiredFields': ['shirt1Fit', 'shirt1Size', 'shirt2Fit', 'shirt2Size'],
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment