PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.16.8.1
GiveWP – Donation Plugin and Fundraising Platform v4.16.8.1
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 2.30.0 All 255 releases
give / src / Campaigns / resources / admin / components / ExistingUserIntroModal / StepDetails.tsx

StepDetails.tsx in GiveWP – Donation Plugin and Fundraising Platform 4.16.8.1, at src/Campaigns/resources/admin/components/ExistingUserIntroModal/StepDetails.tsx

42 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import {stepConfig} from '@givewp/campaigns/admin/components/ExistingUserIntroModal/index';
2 import styles from './ExistingUserIntroModal.module.scss';
3
4 /**
5 * @since 4.0.0
6 */
7
8 type StepDetailsProps = {
9 stepConfig: stepConfig;
10 handleClick: () => void;
11 };
12
13 export function StepDetails({stepConfig, handleClick}: StepDetailsProps) {
14 return (
15 <div className={styles.details}>
16 {stepConfig.badge && stepConfig.badge()}
17
18 <strong className={styles.title}>{stepConfig.title}</strong>
19 <p className={styles.description}>{stepConfig.description}</p>
20
21 <div className={styles.actions}>
22 {stepConfig.linkText && (
23 <a
24 href="https://docs.givewp.com/campaigns-release"
25 target="_blank"
26 rel="noreferrer"
27 className={`${styles.button} ${styles.link}`}
28 >
29 {stepConfig.linkText}
30 </a>
31 )}
32
33 {stepConfig.buttonText && (
34 <button className={styles.button} onClick={handleClick}>
35 {stepConfig.buttonText}
36 </button>
37 )}
38 </div>
39 </div>
40 );
41 }
42