mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-06-02 21:49:25 +00:00
14 lines
313 B
JavaScript
14 lines
313 B
JavaScript
import React, { Component } from "react";
|
|
import styles from "./switch.less";
|
|
|
|
export class Switch extends Component {
|
|
render() {
|
|
const { checked, onchange } = this.props;
|
|
return (
|
|
<label className={styles.switch}>
|
|
<input type="checkbox" checked={checked} onChange={onchange} />
|
|
</label>
|
|
);
|
|
}
|
|
}
|