mirror of
https://github.com/prometheus/prometheus.git
synced 2025-02-21 03:16:00 -08:00
* remove redundant sanitizeHTML abstraction Signed-off-by: blalov <boiskila@gmail.com> * organize folders Signed-off-by: blalov <boiskila@gmail.com> * move hooks outside common folder Signed-off-by: blalov <boiskila@gmail.com> * move PathPrefix interface in types Signed-off-by: blalov <boiskila@gmail.com> * remove config folder Signed-off-by: blalov <boiskila@gmail.com> * remove redundant snapshots Signed-off-by: blalov <boiskila@gmail.com> * rename common folder Signed-off-by: blalov <boiskila@gmail.com> * merge utils files Signed-off-by: Boyko Lalov <boiskila@gmail.com> * sync with master Signed-off-by: blalov <boiskila@gmail.com>
20 lines
641 B
TypeScript
20 lines
641 B
TypeScript
import React, { FC, memo, CSSProperties } from 'react';
|
|
import { FormGroup, Label, Input, InputProps } from 'reactstrap';
|
|
|
|
interface CheckboxProps extends InputProps {
|
|
wrapperStyles?: CSSProperties;
|
|
}
|
|
|
|
const Checkbox: FC<CheckboxProps> = ({ children, wrapperStyles, id, ...rest }) => {
|
|
return (
|
|
<FormGroup className="custom-control custom-checkbox" style={wrapperStyles}>
|
|
<Input {...rest} id={id} type="checkbox" className="custom-control-input" />
|
|
<Label style={{ userSelect: 'none' }} className="custom-control-label" for={id}>
|
|
{children}
|
|
</Label>
|
|
</FormGroup>
|
|
);
|
|
};
|
|
|
|
export default memo(Checkbox);
|