Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
krispenney committed Nov 1, 2022
1 parent a96944f commit 195d2a5
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 18 deletions.
12 changes: 5 additions & 7 deletions examples/services/dashboard/src/ducks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
ILoaderState,
watchLoaderSagas
} from "./loader"
import {RouterState} from "redux-first-history"
import { RouterState } from "redux-first-history"
export * from "./loader"

/**
Expand All @@ -22,12 +22,10 @@ export interface IState {
*/
export const rootReducer = (
routerReducer: Reducer<RouterState>
): Reducer<
{
loader: any
router: RouterState
}
> =>
): Reducer<{
loader: any
router: RouterState
}> =>
combineReducers({
loader: LoaderReducer,
router: routerReducer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ import { createBrowserHistory } from "history"
import React from "react"
import { Provider } from "react-redux"
import { render } from "@testing-library/react"
import {createStore} from "redux"
import { createStore } from "redux"
import { rootReducer } from "src/ducks"
import {createReduxHistoryContext} from "redux-first-history";
import { createReduxHistoryContext } from "redux-first-history"

const { routerReducer } = createReduxHistoryContext({
history: createBrowserHistory()
})
history: createBrowserHistory()
})

// this is a handy function that I normally make available for all my tests
// that deal with connected components.
Expand Down
2 changes: 1 addition & 1 deletion examples/tabs/palette-lts/src/ducks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
} from "@misk/simpleredux"
import { combineReducers, Reducer } from "redux"
import { all, fork } from "redux-saga/effects"
import {RouterState } from "redux-first-history"
import { RouterState } from "redux-first-history"
import {
dispatchPalette,
IDispatchPalette,
Expand Down
4 changes: 2 additions & 2 deletions examples/tabs/palette-lts/tests/upstreamableTestUtilities.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import { Provider } from "react-redux"
import { render } from "@testing-library/react"
import { createStore } from "redux"
import { rootReducer } from "src/ducks"
import {createReduxHistoryContext} from "redux-first-history";
import { createReduxHistoryContext } from "redux-first-history"

const { routerReducer } = createReduxHistoryContext({
history: createBrowserHistory()
history: createBrowserHistory()
})

// this is a handy function that I normally make available for all my tests
Expand Down
Binary file modified examples/tabs/starter-basic/starter-basic.tgz
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import { Provider } from "react-redux"
import { render } from "@testing-library/react"
import { createStore } from "redux"
import { rootReducer } from "src/ducks"
import {createReduxHistoryContext} from "redux-first-history";
import { createReduxHistoryContext } from "redux-first-history"

const { routerReducer } = createReduxHistoryContext({
history: createBrowserHistory()
history: createBrowserHistory()
})

// this is a handy function that I normally make available for all my tests
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import { Provider } from "react-redux"
import { render } from "@testing-library/react"
import { createStore } from "redux"
import { rootReducer } from "src/ducks"
import {createReduxHistoryContext} from "redux-first-history";
import { createReduxHistoryContext } from "redux-first-history"

const { routerReducer } = createReduxHistoryContext({
history: createBrowserHistory()
history: createBrowserHistory()
})

// this is a handy function that I normally make available for all my tests
Expand Down

0 comments on commit 195d2a5

Please sign in to comment.