2020-11-09 15:17:38 +01:00
|
|
|
/**
|
|
|
|
* This is a compatibility wrapper to allow usage of react-switch inside of the angular.js app
|
|
|
|
*/
|
2020-10-26 16:38:17 +01:00
|
|
|
import Switch from 'react-switch';
|
|
|
|
import { react2angular } from 'react2angular';
|
2020-11-23 17:36:33 +01:00
|
|
|
import { IApplication } from '../../models/application';
|
2020-10-28 17:02:22 +01:00
|
|
|
|
2021-07-01 12:34:10 +02:00
|
|
|
declare const Application: IApplication;
|
2020-10-26 16:38:17 +01:00
|
|
|
|
2021-02-10 14:19:14 +01:00
|
|
|
Application.Components.component('switch', react2angular(Switch, ['checked', 'onChange', 'id', 'className', 'disabled']));
|