Skip to content

Commit

Permalink
Merge pull request #20 from chasefleming/chasefleming/show-node
Browse files Browse the repository at this point in the history
Show should take and return Node type
  • Loading branch information
chasefleming authored Oct 24, 2023
2 parents 2d96718 + 087cb59 commit 59bf4b0
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 59bf4b0

Please sign in to comment.