PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.16.9
GiveWP – Donation Plugin and Fundraising Platform v4.16.9
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
← All changes | src/Views/Components/Card/index.js +1 -7 2.30.0 → 4.16.9 View file →
@@ -2,9 +2,9 @@
2 2 import PropTypes from 'prop-types';
3 3 // Import styles
4 4 import styles from './style.module.scss';
5 5
6 -const Card = ({width, title, children}) => {
6 +const Card = ({width = 4, title = null, children = null}) => {
7 7 return (
8 8 <div className={styles.card} style={{gridColumn: 'span ' + width}}>
9 9 {title && <div className={styles.title}>{title}</div>}
10 10 <div className={styles.content}>{children}</div>
@@ -18,13 +18,7 @@
18 18 // Title of card
19 19 title: PropTypes.string,
20 20 // Elements to displayed in content area of card (eg: Chart, List)
21 21 children: PropTypes.node.isRequired,
22 -};
23 -
24 -Card.defaultProps = {
25 - width: 4,
26 - title: null,
27 - children: null,
28 22 };
29 23
30 24 export default Card;