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

Commit

Permalink
Split Form and Text change events
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Quiroz <carlos.m.quiroz@gmail.com>
  • Loading branch information
cquiroz committed Oct 1, 2020
1 parent 79f7131 commit 45a3e67
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import js.annotation._
import js.|
import japgolly.scalajs.react._
import japgolly.scalajs.react.raw.JsNumber
import japgolly.scalajs.react.vdom.TagMod
import react.common._
import react.semanticui._
import japgolly.scalajs.react.vdom.TagMod
import react.semanticui.collections.form.Form
import org.scalajs.dom

final case class TextArea(
as: js.UndefOr[AsC] = js.undefined,
Expand All @@ -26,8 +26,9 @@ final case class TextArea(
}

object TextArea {
type Event = (Form.ReactChangeEvent, TextAreaProps) => Callback
type RawEvent = js.Function2[Form.ReactChangeEvent, TextAreaProps, Unit]
final type ReactChangeEvent = ReactEventFrom[dom.Node]
type Event = (ReactChangeEvent, TextAreaProps) => Callback
type RawEvent = js.Function2[ReactChangeEvent, TextAreaProps, Unit]

@js.native
@JSImport("semantic-ui-react", "TextArea")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ final case class Form(
}

object Form {
final type ReactChangeEvent = ReactEventFrom[dom.Node]
type OnRawSubmit = js.Function2[ReactChangeEvent, FormProps, Unit]
type OnSubmitE = (ReactChangeEvent, FormProps) => Callback
final type ReactFormEvent = ReactEventFrom[dom.Node]
type OnRawSubmit = js.Function2[ReactFormEvent, FormProps, Unit]
type OnSubmitE = (ReactFormEvent, FormProps) => Callback

@js.native
@JSImport("semantic-ui-react", "Form")
Expand Down

0 comments on commit 45a3e67

Please sign in to comment.