mirror of
https://github.com/zadam/trilium.git
synced 2025-11-12 00:05:50 +01:00
feat(react/settings): port images
This commit is contained in:
@@ -7,11 +7,12 @@ interface FormGroupProps {
|
||||
className?: string;
|
||||
children: ComponentChildren;
|
||||
description?: string | ComponentChildren;
|
||||
disabled?: boolean;
|
||||
}
|
||||
|
||||
export default function FormGroup({ label, title, className, children, description, labelRef }: FormGroupProps) {
|
||||
export default function FormGroup({ label, title, className, children, description, labelRef, disabled }: FormGroupProps) {
|
||||
return (
|
||||
<div className={`form-group ${className}`} title={title}
|
||||
<div className={`form-group ${className} ${disabled ? "disabled" : ""}`} title={title}
|
||||
style={{ "margin-bottom": "15px" }}>
|
||||
<label style={{ width: "100%" }} ref={labelRef}>
|
||||
{label && <div style={{ "margin-bottom": "10px" }}>{label}</div> }
|
||||
|
||||
Reference in New Issue
Block a user