Skip to content
This repository has been archived by the owner on Feb 10, 2023. It is now read-only.

Commit

Permalink
Merge pull request #71 from cquiroz/toast
Browse files Browse the repository at this point in the history
Add facade for react-semantic-toasts
  • Loading branch information
cquiroz authored Jan 1, 2020
2 parents 86fdd1a + 12e4ac0 commit 9059916
Show file tree
Hide file tree
Showing 8 changed files with 367 additions and 2,093 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## 0.2.1

* Upgrade to react-semantic-ui 0.87.3
* Support react-semantic-toasts
* Added Rail component

## 0.2.0
Expand Down
5 changes: 4 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ val reactJS = "16.7.0"
val scalaJsReact = "1.4.2"
val SUI = "2.4.1"
val reactSUI = "0.87.3"
val Toasts = "0.6.5"

parallelExecution in (ThisBuild, Test) := false

Expand Down Expand Up @@ -98,7 +99,8 @@ lazy val demo =
npmDependencies in Compile ++= Seq(
"react" -> reactJS,
"react-dom" -> reactJS,
"semantic-ui-less" -> SUI
"semantic-ui-less" -> SUI,
"react-semantic-toasts" -> Toasts
),
// don't publish the demo
publish := {},
Expand Down Expand Up @@ -126,6 +128,7 @@ lazy val facade =
"react" -> reactJS,
"react-dom" -> reactJS,
"semantic-ui-react" -> reactSUI,
"react-semantic-toasts" -> Toasts,
"create-react-context" -> "0.2.2"
),
libraryDependencies ++= Seq(
Expand Down
1 change: 1 addition & 0 deletions demo/src/main/resources/dev.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import "./theme/semantic.less";
import "./less/style.less";
import "react-semantic-toasts/styles/react-semantic-alert.css";

import App from "sjs/demo-fastopt.js";
import React from "react";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ package react.semanticui.demo

import japgolly.scalajs.react._
import japgolly.scalajs.react.vdom.html_<^._
import react.semanticui.toasts._
import react.semanticui.elements.button.Button

object HomeComponent {
private val component =
Expand Down Expand Up @@ -31,7 +33,11 @@ object HomeComponent {
"Semantic React UI"
)
)
)
),
Button(onClick = toastCB(ToastOptions("Greetings"), onClose = Callback.log("here")))(
"Toast"
),
SemanticToastContainer()
)
}
.build
Expand Down
Loading

0 comments on commit 9059916

Please sign in to comment.