mirror of
https://gh.wpcy.net/https://github.com/elementor/one-click-accessibility.git
synced 2026-04-21 11:32:30 +08:00
* add: volume and solid crown icon * add: volume and crown icons to export * update: refactor menu item to a new component * add: screen reader to the menu items and reorganize them * add: pro item infotip content * add: capabilities item and pro info tip to exports * update: import ProInfoTip component and change disabled logic * update: imports * update: refactor pro item infotip into the separate component * update: refactor infotip and add comments * add: custom switch component * add: logo settings layout * update: switch component * add: useToggleSetting hook to manage widget settings. * update: move pro feature key to a separate constant * fix: pro icon style * update: remove branding key * update: pro enable check structure * update: pro enabled check structure * update: key name * update: update key before checking for it * fix: null error * add: update logic to get the tools settings based on plan * update: exclude remove-elementor-label from the minimum option rule * update: add formlabel and eventnames * add: logic to deactivate the features which are disabled for the plan * fix: PHP warning * fix: keyword name * add: GOLINKS * add: open link function * fix: PHP warning undefined key * update: logic to show the icon and added golinks
15 lines
343 B
JavaScript
15 lines
343 B
JavaScript
import Switch from '@elementor/ui/Switch';
|
|
import { styled } from '@elementor/ui/styles';
|
|
|
|
const StyledSwitch = styled(Switch)`
|
|
input {
|
|
height: 56px !important;
|
|
}
|
|
`;
|
|
|
|
// Add the options to the StyledSwitch component
|
|
const CustomSwitch = (props) => (
|
|
<StyledSwitch size="medium" color="info" {...props} />
|
|
);
|
|
|
|
export default CustomSwitch;
|