|
22 | 22 | </div>
|
23 | 23 | </div>
|
24 | 24 | </a>
|
25 |
| - <div class="flex items-center flex-wrap gap-y-2"> |
| 25 | + <div class="flex items-center flex-wrap gap-2"> |
26 | 26 | {{#if (gt @affiliateReferral.totalEarningsAmountInDollars 0)}}
|
27 |
| - <div class="flex shrink-0"> |
28 |
| - <span |
29 |
| - class="inline-flex border border-green-300 rounded-full bg-green-100 px-2 text-xs font-semibold leading-5 text-green-700 mr-2" |
30 |
| - >${{@affiliateReferral.spentAmountInDollars}} spent</span> |
| 27 | + <Pill @color="green" class="shrink-0"> |
| 28 | + ${{@affiliateReferral.spentAmountInDollars}} |
| 29 | + spent |
| 30 | + |
31 | 31 | <EmberTooltip @text="This is the amount {{@affiliateReferral.customer.username}} has spent so far." />
|
32 |
| - </div> |
| 32 | + </Pill> |
33 | 33 | {{/if}}
|
| 34 | + |
34 | 35 | {{#if (gt @affiliateReferral.upcomingPaymentAmountInDollars 0)}}
|
35 |
| - <div class="flex shrink-0"> |
36 |
| - <span |
37 |
| - class="inline-flex border border-yellow-300 rounded-full bg-yellow-100 px-2 text-xs font-semibold leading-5 text-yellow-700 mr-2" |
38 |
| - >${{@affiliateReferral.upcomingPaymentAmountInDollars}} pending</span> |
| 36 | + <Pill @color="yellow" class="shrink-0"> |
| 37 | + ${{@affiliateReferral.upcomingPaymentAmountInDollars}} |
| 38 | + pending |
| 39 | + |
39 | 40 | <EmberTooltip @text="This is the value of {{@affiliateReferral.customer.username}}'s upcoming payment." />
|
40 |
| - </div> |
| 41 | + </Pill> |
41 | 42 | {{/if}}
|
42 |
| - <div class="flex shrink-0"> |
43 |
| - {{#if @affiliateReferral.statusIsTrialing}} |
44 |
| - <span |
45 |
| - class="inline-flex border border-yellow-300 rounded-full bg-yellow-100 px-2 text-xs font-semibold leading-5 text-yellow-700 mr-2" |
46 |
| - >Trialing</span> |
47 |
| - <EmberTooltip @text="This user has started a trial. We haven't received their first payment yet." /> |
48 |
| - {{else if @affiliateReferral.statusIsPendingTrial}} |
49 |
| - <span class="inline-flex border border-gray-300 rounded-full bg-gray-100 px-2 text-xs font-semibold leading-5 text-gray-700 mr-2">Signed up</span> |
50 |
| - <EmberTooltip @text="This user has accepted your referral offer but hasn't started a trial yet." /> |
51 |
| - {{else if @affiliateReferral.statusIsFirstChargeSuccessful}} |
52 |
| - <span |
53 |
| - class="inline-flex border border-green-300 rounded-full bg-green-100 px-2 text-xs font-semibold leading-5 text-green-700 mr-2" |
54 |
| - >Paid</span> |
| 43 | + |
| 44 | + {{#if @affiliateReferral.statusIsAwaitingFirstCharge}} |
| 45 | + <Pill @color="gray" class="shrink-0"> |
| 46 | + Signed up |
| 47 | + |
| 48 | + <EmberTooltip @text="This user has accepted your referral offer but hasn't made a payment yet." /> |
| 49 | + </Pill> |
| 50 | + {{else if @affiliateReferral.statusIsFirstChargeSuccessful}} |
| 51 | + <Pill @color="green" class="shrink-0"> |
| 52 | + Paid |
| 53 | + |
55 | 54 | <EmberTooltip @text="This user has made at least one payment that is attributable to you." />
|
56 |
| - {{else}} |
57 |
| - <span |
58 |
| - class="inline-flex border border-gray-300 rounded-full bg-gray-100 px-2 text-xs font-semibold leading-5 text-gray-700 mr-2" |
59 |
| - >Inactive</span> |
60 |
| - <EmberTooltip @text="This user either cancelled their trial, joined a paid team account or availed a separate discount." /> |
61 |
| - {{/if}} |
62 |
| - </div> |
| 55 | + </Pill> |
| 56 | + {{else}} |
| 57 | + <Pill @color="gray" class="shrink-0"> |
| 58 | + Inactive |
| 59 | + |
| 60 | + <EmberTooltip @text="This user either joined a paid team account or availed a separate discount." /> |
| 61 | + </Pill> |
| 62 | + {{/if}} |
63 | 63 |
|
64 | 64 | <span class="text-gray-400 text-xs hidden lg:block">{{date-from-now @affiliateReferral.activatedAt}}</span>
|
65 | 65 | </div>
|
|
0 commit comments