PluginProbe
Subscriptions for WooCommerce with Stripe Recurring Payments / 2.0.0
Subscriptions for WooCommerce with Stripe Recurring Payments v2.0.0
2.0.0 1.11.2 1.11.1 1.11.0 1.10.9 1.10.8 1.10.7 1.10.6 1.10.5 1.10.4 1.10.3 1.10.2 1.10.1 1.10.0 1.9.6 1.9.5 trunk 1.3.0 1.3.1 1.3.2 1.4.0 1.4.1 1.4.2 1.5.0 1.5.1 All 61 releases
subscription / src / dashboard / StatTiles.js

StatTiles.js in Subscriptions for WooCommerce with Stripe Recurring Payments 2.0.0, at src/dashboard/StatTiles.js

25 lines 741 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /**
2 * The five figures, as tiles.
3 *
4 * Each is a link, not just a number: a count you cannot act on is trivia, so
5 * every tile opens the list it describes.
6 */
7
8 import Icon from "./Icon";
9
10 export default function StatTiles({ items }) {
11 return (
12 <div className="subscrpt-tiles">
13 {items.map((item) => (
14 <a key={item.key} className={`subscrpt-tile${item.tone ? ` is-${item.tone}` : ""}`} href={item.url}>
15 <span className="subscrpt-tile__icon">
16 <Icon name={item.icon} />
17 </span>
18 <span className="subscrpt-tile__value">{new Intl.NumberFormat().format(item.value)}</span>
19 <span className="subscrpt-tile__label">{item.label}</span>
20 </a>
21 ))}
22 </div>
23 );
24 }
25