PluginProbe
Discount Rules for WooCommerce – Disco | Dynamic Pricing, Conditions, Bulk, Bundle, BOGO / 1.4.2
Discount Rules for WooCommerce – Disco | Dynamic Pricing, Conditions, Bulk, Bundle, BOGO v1.4.2
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 / pages / Rules / Tabs / TabButton.jsx

TabButton.jsx in Discount Rules for WooCommerce – Disco | Dynamic Pricing, Conditions, Bulk, Bundle, BOGO 1.4.2, at backend/views/components/Main/pages/Rules/Tabs/TabButton.jsx

24 lines 721 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import { Tab } from '@headlessui/react';
2 import { Fragment } from 'react';
3
4 const TabButton = ({ children, disabled }) => {
5 return (
6 <Tab as={Fragment}>
7 {({ selected }) => (
8 <button
9 className={`first:disco-rounded-l-xl last:disco-rounded-r-xl disco-box-border disco-border disco-border-gray-100 disco-pt-3.5 disco-pb-3 disco-flex-grow disco-justify-between disco-outline-none disco-text-base disco-bg-white ${
10 selected
11 ? 'disco-bg-primary-light !disco-border !disco-bg-primary !disco-border-solid disco-text-white'
12 : ''
13 } ${
14 !disabled ? 'disco-text-primary' : 'disco-text-gray-400'
15 }`}
16 >
17 {children}
18 </button>
19 )}
20 </Tab>
21 );
22 };
23 export default TabButton;
24