Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
nafg committed Mar 3, 2020
1 parent 61f7036 commit c1e5345
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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")
)

```
Expand Down

0 comments on commit c1e5345

Please sign in to comment.