From e70e312843ba394326807fa7fdbf9b3fd4251d08 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Fri, 19 Jun 2020 04:55:48 +0000 Subject: [PATCH] Make locker storage subscription a custom amount --- webclient/src/Paymaster.js | 60 +++++++++++++++++--------------------- 1 file changed, 27 insertions(+), 33 deletions(-) diff --git a/webclient/src/Paymaster.js b/webclient/src/Paymaster.js index 7409172..7d9cfc4 100644 --- a/webclient/src/Paymaster.js +++ b/webclient/src/Paymaster.js @@ -10,6 +10,7 @@ import { PayPalPayNow, PayPalSubscribe } from './PayPal.js'; export function Paymaster(props) { const { user } = props; const [pop, setPop] = useState('20.00'); + const [locker, setLocker] = useState('5.00'); const [donate, setDonate] = useState('20.00'); return ( @@ -89,39 +90,6 @@ export function Paymaster(props) { -
Locker Storage
- -

Confirm location and availability with Scott Y before subscribing.

- - - -

Small $3.00 / month:

- -
- - -

Medium $5.00 / month:

- -
- - -

Large $10.00 / month:

- -
-
-
Donate
@@ -162,6 +130,32 @@ export function Paymaster(props) { /> + +
Locker Storage
+ +

Confirm location and availability with Scott Young before subscribing.

+ + + + Custom amount: + +
+ setLocker(v.value)} + /> +
+ + +
+
); };