PluginProbe
Discount Rules for WooCommerce – Disco | Dynamic Pricing, Conditions, Bulk, Bundle, BOGO / 1.3.51
Discount Rules for WooCommerce – Disco | Dynamic Pricing, Conditions, Bulk, Bundle, BOGO v1.3.51
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 1.3.51 1.3.50 1.3.49 1.3.48 All 180 releases
disco / backend / views / components / Main / components / FontStyleButtons.jsx

FontStyleButtons.jsx in Discount Rules for WooCommerce – Disco | Dynamic Pricing, Conditions, Bulk, Bundle, BOGO 1.3.51, at backend/views/components/Main/components/FontStyleButtons.jsx

55 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 const FontStyleButtons = ({
2 isBold = false,
3 isItalic = false,
4 isUnderline = false,
5 onBoldToggle,
6 onItalicToggle,
7 onUnderlineToggle,
8 disabled = false,
9 }) => {
10 return (
11 <div
12 className={`disco-flex disco-bg-gray-50 disco-rounded disco-items-center disco-gap-1 disco-p-1 ${disabled ? 'disco-opacity-50' : ''}`}
13 >
14 <button
15 type="button"
16 onClick={onBoldToggle}
17 disabled={disabled}
18 className={`disco-px-2 disco-py-1 disco-rounded disco-font-bold disco-text-sm ${
19 isBold
20 ? 'disco-bg-primary disco-text-white'
21 : 'disco-bg-white disco-text-gray-700 hover:disco-bg-gray-100'
22 } ${disabled ? 'disco-cursor-not-allowed' : ''}`}
23 >
24 B
25 </button>
26 <button
27 type="button"
28 onClick={onItalicToggle}
29 disabled={disabled}
30 className={`disco-px-2 disco-py-1 disco-rounded disco-italic disco-text-sm ${
31 isItalic
32 ? 'disco-bg-primary disco-text-white'
33 : 'disco-bg-white disco-text-gray-700 hover:disco-bg-gray-100'
34 } ${disabled ? 'disco-cursor-not-allowed' : ''}`}
35 >
36 I
37 </button>
38 <button
39 type="button"
40 onClick={onUnderlineToggle}
41 disabled={disabled}
42 className={`disco-px-2 disco-py-1 disco-rounded disco-underline disco-text-sm ${
43 isUnderline
44 ? 'disco-bg-primary disco-text-white'
45 : 'disco-bg-white disco-text-gray-700 hover:disco-bg-gray-100'
46 } ${disabled ? 'disco-cursor-not-allowed' : ''}`}
47 >
48 U
49 </button>
50 </div>
51 );
52 };
53
54 export default FontStyleButtons;
55