Update donate page

This commit is contained in:
2024-01-18 20:32:01 +04:00
parent a978f17f81
commit 6ac93265b9
3 changed files with 83 additions and 8 deletions
+3 -4
View File
@@ -7,6 +7,7 @@ import Button from '@mui/material/Button'
import {Paypal, Liberapay} from '@icons-pack/react-simple-icons'
import Grid from '@mui/material/Unstable_Grid2'
import CardMethod from './card-method'
const PAYPAL_ID = process.env.NEXT_PUBLIC_PAYPAL_DONATE_ID
const LIBERAPAY_DONATE = process.env.NEXT_PUBLIC_LIBERAPAY_DONATE
@@ -54,7 +55,7 @@ export default function PaymentMethod({paymentMethod, setPaymentMethod}) {
<Box sx={{borderBottom: 1, borderColor: 'divider'}}>
<Tabs scrollButtons allowScrollButtonsMobile value={paymentMethod} aria-label='basic tabs example' variant='fullWidth' onChange={handleChange}>
<Tab wrapped label='Liberapay / PayPal' {...a11yProps(0)} />
<Tab wrapped label='Adhésion' {...a11yProps(1)} />
<Tab wrapped label='Carte bancaire' {...a11yProps(1)} />
</Tabs>
</Box>
<TabPanel value={paymentMethod} index={0}>
@@ -72,9 +73,7 @@ export default function PaymentMethod({paymentMethod, setPaymentMethod}) {
</Grid>
</TabPanel>
<TabPanel value={paymentMethod} index={1}>
<Button size='large' variant='outlined' onClick={() => window.open('https://asso.oki.re/public/members/new.php', '_blank')}>
Cliquez ici pour adhérer à lassociation OKi
</Button>
<CardMethod />
</TabPanel>
</Box>
)