From 087cb59b783c9fb66b626f896988545ae67083fe Mon Sep 17 00:00:00 2001 From: Chase Fleming <1666730+chasefleming@users.noreply.github.com> Date: Tue, 24 Oct 2023 06:19:15 -0700 Subject: [PATCH] Show should take and return Node type --- utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.go b/utils.go index d60cb80..183b0e7 100644 --- a/utils.go +++ b/utils.go @@ -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 }