Skip to content

Commit

Permalink
Show should take and return Node type
Browse files Browse the repository at this point in the history
  • Loading branch information
chasefleming committed Oct 24, 2023
1 parent 2d96718 commit 087cb59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func ApplyStyle(s Style) string {
}

// Show conditionally renders one of the provided elements based on the condition
func Show(condition bool, ifTrue, ifFalse *Element) *Element {
func Show(condition bool, ifTrue, ifFalse Node) Node {
if condition {
return ifTrue
}
Expand Down

0 comments on commit 087cb59

Please sign in to comment.