1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-11 00:52:29 +01:00

11 lines
408 B
TypeScript
Raw Normal View History

/**
* This is a compatibility wrapper to allow usage of react-switch inside of the angular.js app
*/
import Switch from 'react-switch';
import { react2angular } from 'react2angular';
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;
Application.Components.component('switch', react2angular(Switch, ['checked', 'onChange', 'id', 'className', 'disabled']));