PluginProbe
Discount Rules for WooCommerce – Disco | Dynamic Pricing, Conditions, Bulk, Bundle, BOGO / 1.4.20
Discount Rules for WooCommerce – Disco | Dynamic Pricing, Conditions, Bulk, Bundle, BOGO v1.4.20
1.4.21 1.4.20 1.4.19 1.4.18 1.4.17 1.4.16 1.4.15 1.4.14 1.4.13 1.4.12 1.4.11 1.4.10 1.4.9 1.4.8 1.4.7 1.4.6 1.4.5 1.4.4 1.4.3 1.4.2 1.4.1 1.4.0 1.3.54 1.3.53 1.3.52 All 184 releases
disco / backend / views / components / Analytics / components / campaigns / StatusBadge.jsx

StatusBadge.jsx in Discount Rules for WooCommerce – Disco | Dynamic Pricing, Conditions, Bulk, Bundle, BOGO 1.4.20, at backend/views/components/Analytics/components/campaigns/StatusBadge.jsx

25 lines 600 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 const STATUS_STYLES = {
2 active: { dot: '#16a34a', text: '#374151' },
3 expired: { dot: '#9ca3af', text: '#6b7280' },
4 deleted: { dot: '#ef4444', text: '#374151' },
5 };
6
7 const StatusBadge = ({ status }) => {
8 let style = STATUS_STYLES[status] || { dot: '#d1d5db', text: '#6b7280' };
9
10 return (
11 <span
12 className="disco:inline-flex disco:items-center disco:gap-1.5 disco:text-xs"
13 style={{ color: style.text }}
14 >
15 <span
16 className="disco:size-[6px] disco:rounded-full disco:shrink-0"
17 style={{ backgroundColor: style.dot }}
18 />
19 {status}
20 </span>
21 );
22 };
23
24 export default StatusBadge;
25