Skip to content

Commit 56bfd79

Browse files
Simplified redux related imports, fixed #3
1 parent 7e2c823 commit 56bfd79

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package scommons.react
2+
3+
import io.github.shogowada.scalajs.reactjs
4+
5+
package object redux {
6+
7+
type Action = reactjs.redux.Action
8+
type Dispatch = reactjs.redux.Redux.Dispatch
9+
}

redux/src/main/scala/scommons/react/redux/task/TaskAction.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package scommons.react.redux.task
22

3-
import io.github.shogowada.scalajs.reactjs.redux.Action
3+
import scommons.react.redux.Action
44

55
trait TaskAction extends Action {
66

showcase/src/main/scala/scommons/react/showcase/app/counter/CounterActions.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package scommons.react.showcase.app.counter
22

3-
import io.github.shogowada.scalajs.reactjs.redux.Action
4-
import io.github.shogowada.scalajs.reactjs.redux.Redux.Dispatch
3+
import scommons.react.redux._
54
import scommons.react.redux.task.{FutureTask, TaskAction}
65
import scommons.react.showcase.app.counter.CounterActions._
76

0 commit comments

Comments
 (0)