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 / Main / components / CheckBox.jsx

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

23 lines 855 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import { Checkbox, Field, Label } from '@headlessui/react';
2 import { CheckIcon } from '@heroicons/react/24/solid';
3
4 const CheckBox = ({ checked, onChange, label, testid }) => {
5 return (
6 <Field className="disco:flex disco:items-center disco:gap-2 disco:cursor-pointer disco:mb-4">
7 <Checkbox
8 checked={checked}
9 onChange={onChange}
10 data-testid={testid}
11 className="disco:w-4 disco:h-4 disco:rounded disco:border disco:border-primary disco:data-checked:bg-primary disco:data-checked:border-primary disco:bg-white disco:flex disco:items-center disco:justify-center"
12 >
13 <CheckIcon className="disco:hidden disco:w-3 disco:h-3 disco:text-white disco:in-data-checked:block" />
14 </Checkbox>
15 <Label className="disco:text-base disco:select-none disco:cursor-pointer">
16 {label}
17 </Label>
18 </Field>
19 );
20 };
21
22 export default CheckBox;
23