From c1e534539f90d268a060a25b36ea3b1f2ccb354d Mon Sep 17 00:00:00 2001 From: Naftoli Gugenheim Date: Tue, 3 Mar 2020 17:57:38 -0500 Subject: [PATCH] Update README.md --- README.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 437a73c..cea7b17 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ import scala.scalajs.js.annotation.JSImport import io.github.nafg.simplefacade.{FacadeModule, PropTypes} -object Badge extends FacadeModule { +object Badge extends FacadeModule.NodeChildren.Simple { @JSImport("@material-ui/core/Badge", JSImport.Default) @js.native object raw extends js.Object override def mkProps = new Props @@ -39,10 +39,8 @@ object Badge extends FacadeModule { } // in some render method -Badge( - _.badgeContent := "1", - _.color := "secondary", - _.children := Icon(_.children := "mail") +Badge( _.badgeContent := "1", _.color := "secondary", _.dynamicProp(72))( + Icon(_.children := "mail") ) ```