Refactor help button implementation in InputControl and SelectControl components

This commit is contained in:
Luis Eduardo Jeréz Girón
2024-08-03 20:20:36 -06:00
parent 8ef584a863
commit f0340e282a
2 changed files with 2 additions and 6 deletions

View File

@@ -53,9 +53,7 @@ func InputControl(params InputControlParams) gomponents.Node {
HelpButtonModal(HelpButtonModalParams{
ModalTitle: params.Label,
ButtonSize: SizeSm,
Children: []gomponents.Node{
SpanText(params.HelpText),
},
Children: params.HelpButtonChildren,
}),
),
),

View File

@@ -48,9 +48,7 @@ func SelectControl(params SelectControlParams) gomponents.Node {
HelpButtonModal(HelpButtonModalParams{
ModalTitle: params.Label,
ButtonSize: SizeSm,
Children: []gomponents.Node{
SpanText(params.HelpText),
},
Children: params.HelpButtonChildren,
}),
),
),