From 1abd8662522f3b95cd184e99065942403361da44 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Fri, 21 Feb 2020 07:46:13 +0000 Subject: [PATCH] Add Paymaster page full of PayPal buttons --- webclient/src/App.js | 10 +++ webclient/src/Paymaster.js | 143 +++++++++++++++++++++++++++++++++++++ 2 files changed, 153 insertions(+) create mode 100644 webclient/src/Paymaster.js diff --git a/webclient/src/App.js b/webclient/src/App.js index f75f96c..e89418a 100644 --- a/webclient/src/App.js +++ b/webclient/src/App.js @@ -8,6 +8,7 @@ import { ManageScroll } from './ManageScroll.js'; import { Home } from './Home.js'; import { Account } from './Account.js'; import { Transactions, TransactionDetail } from './Transactions.js'; +import { Paymaster } from './Paymaster.js'; import { Cards } from './Cards.js'; import { Training } from './Training.js'; import { AdminReportedTransactions } from './AdminTransactions.js'; @@ -106,6 +107,11 @@ function App() { as={Link} to='/transactions' /> + + + + + diff --git a/webclient/src/Paymaster.js b/webclient/src/Paymaster.js new file mode 100644 index 0000000..6de329f --- /dev/null +++ b/webclient/src/Paymaster.js @@ -0,0 +1,143 @@ +import React, { useState, useEffect } from 'react'; +import { BrowserRouter as Router, Switch, Route, Link, useParams, useHistory } from 'react-router-dom'; +import './light.css'; +import { Button, Container, Checkbox, Dimmer, Divider, Dropdown, Form, Grid, Header, Icon, Image, Menu, Message, Segment, Table } from 'semantic-ui-react'; +import moment from 'moment'; +import { apiUrl, statusColor, BasicTable, staticUrl, requester } from './utils.js'; +import { NotFound } from './Misc.js'; +import { PayPalPayNow, PayPalSubscribe } from './PayPal.js'; + +export function Paymaster(props) { + const { user } = props; + + return ( + +
Paymaster
+

Use these buttons to send money to Protospace.

+ +
Snacks, Pop, Coffee
+ + +

Pay $5.00:

+ +
+ + +

Pay $10.00:

+ +
+ + +

Pay $20.00:

+ +
+
+ +
Member Dues
+ + +

Pay ${user.member.monthly_fees}.00 once:

+ +
+ + +

Subscribe ${user.member.monthly_fees}.00 / month:

+ +
+ + +

Pay ${user.member.monthly_fees * 11}.00 for a year:

+ +

...get one month for free!

+
+
+ +
Locker Storage
+ +

Confirm location and availability with Scott Y before subscribing.

+ + + +

Small $3.00 / month:

+ +
+ + +

Medium $5.00 / month:

+ +
+ + +

Large $10.00 / month:

+ +
+
+ +
Donate
+ + +

Donate $5.00:

+ +
+ + +

Donate $10.00:

+ +
+ + +

Donate $20.00:

+ +
+
+
+ ); +};