1
0
mirror of https://gitlab.nic.cz/turris/reforis/foris-js.git synced 2024-07-02 20:30:27 +00:00

Add ability to select switch's form-group

This commit is contained in:
Aleksandr Gumroian 2020-08-31 11:54:55 +02:00
parent 61b349c6cc
commit 443f14d26c
No known key found for this signature in database
GPG Key ID: 9E77849C64F0A733

View File

@ -23,7 +23,7 @@ Switch.propTypes = {
export function Switch({ label, helpText, switchHeading, ...props }) { export function Switch({ label, helpText, switchHeading, ...props }) {
const uid = useUID(); const uid = useUID();
return ( return (
<div className="form-group"> <div className="form-group custom-switch">
<div <div
className={`custom-control custom-switch ${ className={`custom-control custom-switch ${
!helpText ? "custom-control-inline" : "" !helpText ? "custom-control-inline" : ""