diff --git a/webclient/src/Classes.js b/webclient/src/Classes.js index 541dde9..0100e0f 100644 --- a/webclient/src/Classes.js +++ b/webclient/src/Classes.js @@ -6,7 +6,7 @@ import moment from 'moment'; import { isAdmin, isInstructor, BasicTable, requester } from './utils.js'; import { NotFound, PleaseLogin } from './Misc.js'; import { InstructorClassDetail, InstructorClassAttendance } from './InstructorClasses.js'; -import { PayPal } from './PayPal.js'; +import { PayPalPayNow } from './PayPal.js'; function ClassTable(props) { const { classes } = props; @@ -211,7 +211,7 @@ export function ClassDetail(props) { {userTraining.attendance_status === 'Waiting for payment' &&

Please pay the course fee of ${clazz.cost} to confirm your attendance.

- } - {!member.photo_medium && + {!!lastTrans.length && !member.photo_medium && Please set a member photo!

Visit the account settings page to set one.

} + {!lastTrans.length &&
+
PayPal
+

Create a ${user.member.monthly_fees} / month subscription, get your first three months for the price of two:

+ +
} +
Details
diff --git a/webclient/src/PayPal.js b/webclient/src/PayPal.js index 9d00ef2..db58e44 100644 --- a/webclient/src/PayPal.js +++ b/webclient/src/PayPal.js @@ -1,6 +1,6 @@ import React, { useState, useEffect, useReducer } from 'react'; -export function PayPal(props) { +export function PayPalPayNow(props) { const { amount, custom, name } = props; return ( @@ -24,3 +24,56 @@ export function PayPal(props) {
); } + +export function PayPalSubscribe(props) { + const { amount, custom, name } = props; + + return ( +
+
+ + + + + + + + + + + + + + +
+
+ ); +} + +export function PayPalSubscribeDeal(props) { + const { amount, custom, name } = props; + + return ( +
+
+ + + + + + + + + + + + + + + + + +
+
+ ); +}