PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.17.0
GiveWP – Donation Plugin and Fundraising Platform v4.17.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 2.3.2 All 256 releases
give / src / DonationForms / V2 / resources / components / Migration / index.tsx

index.tsx in GiveWP – Donation Plugin and Fundraising Platform 4.17.0, at src/DonationForms/V2/resources/components/Migration/index.tsx

49 lines 1.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import {__, sprintf} from "@wordpress/i18n";
2 import {createInterpolateElement} from "@wordpress/element";
3 import {CheckVerified} from "@givewp/components/AdminUI/Icons";
4
5 /**
6 * @since 3.16.0
7 */
8 export const UpgradeModalContent = () => {
9
10 const {supportedAddons, supportedGateways} = window.GiveDonationForms;
11
12 return <p style={{maxWidth: '400px'}}>
13 {createInterpolateElement(
14 sprintf(__('GiveWP 3.0 introduces an enhanced forms experience powered by the new Visual Donation Form Builder. The team is still working on add-on and gateway compatibility. If you need to use an add-on or gateway that isn\'t listed, use the "%sAdd form%s" option for now.', 'give'), '<b>', '</b>'),
15 {
16 b: <strong />,
17 }
18 )}
19 <br />
20 {supportedAddons.length > 0 && (
21 <SupportedItemsList title={__('Supported add-ons', 'give')} items={supportedAddons} />
22 )}
23 <br />
24 {supportedGateways.length > 0 && (
25 <SupportedItemsList title={__('Supported gateways', 'give')} items={supportedGateways} />
26 )}
27 <div>
28 <a href="https://docs.givewp.com/compat-guide" rel="noopener noreferrer" target="_blank">
29 {__('Read more on Add-ons and Gateways compatibility', 'give')}
30 </a>
31 </div>
32 </p>
33 }
34
35 const SupportedItemsList = ({title, items}) => {
36 return (
37 <>
38 <h3>{title}</h3>
39 <ul>
40 {items.map((item) => (
41 <li key={item}>
42 <CheckVerified /> {item}
43 </li>
44 ))}
45 </ul>
46 </>
47 )
48 }
49