1
0
mirror of https://gitlab.nic.cz/turris/reforis/foris-js.git synced 2024-11-14 17:35:35 +01:00

Fix extra empty space in Switch's classes

This commit is contained in:
Aleksandr Gumroian 2020-09-25 18:46:54 +02:00
parent 1e04d34645
commit e03e0f44cc
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 }) {
const uid = useUID();
return (
<div className={`form-group ${switchHeading ? "switch" : ""}`}>
<div className={`form-group ${switchHeading ? "switch" : ""}`.trim()}>
<div
className={`custom-control custom-switch ${
!helpText ? "custom-control-inline" : ""