mirror of
https://github.com/eduardolat/pgbackweb.git
synced 2026-01-25 05:58:29 -06:00
Refactor help button implementation in InputControl and SelectControl components
This commit is contained in:
@@ -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,
|
||||
}),
|
||||
),
|
||||
),
|
||||
|
||||
@@ -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,
|
||||
}),
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user