PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.18.0
GiveWP – Donation Plugin and Fundraising Platform v4.18.0
4.18.0 4.17.0 4.16.9 4.16.8.1 4.16.8 4.16.7.2 4.16.7.1 4.16.7 4.16.6.1 4.16.6 4.16.5.1 4.16.5 4.16.4 4.16.3 4.16.2 4.16.1 4.16.0 4.15.5 4.15.4 4.15.3 4.15.2 4.15.1 4.15.0 2.3.0 2.3.1 All 257 releases
give / src / Promotions / InPluginUpsells / resources / js / components / AdditionalAddons.js

AdditionalAddons.js in GiveWP – Donation Plugin and Fundraising Platform 4.18.0, at src/Promotions/InPluginUpsells/resources/js/components/AdditionalAddons.js

39 lines 1.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import {__} from '@wordpress/i18n';
2
3 import {AdditionalAddonCard} from './AdditionalAddonCard';
4 import {Button} from './Button';
5 import {Hero} from './Hero';
6 import styles from './AdditionalAddons.module.css';
7
8 const {heading, description, addons, addonButtonCaption, allAddonsUrl} = window.GiveAddons.additionalAddons;
9
10 export const AdditionalAddons = () => (
11 <article>
12 <Hero heading={heading} description={description} />
13 <ul className={styles.addons}>
14 {addons.map(({name, image, description, url}) => (
15 <li key={name}>
16 <AdditionalAddonCard
17 name={name}
18 description={description}
19 image={image}
20 actionText={addonButtonCaption}
21 actionLink={url}
22 />
23 </li>
24 ))}
25 </ul>
26 <div className={styles.viewAll}>
27 <p
28 className={styles.viewAllText}
29 dangerouslySetInnerHTML={{
30 __html: __('Didn’t find what you were looking for?<br> View the entire catalog!', 'give'),
31 }}
32 />
33 <Button as="a" href={allAddonsUrl} rel="noopener" target="_blank" className={styles.viewAllButton}>
34 {__('View All Add-ons', 'give')}
35 </Button>
36 </div>
37 </article>
38 );
39