-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Raice Hannay
committed
Dec 12, 2019
1 parent
421bf64
commit 30fcaa1
Showing
10 changed files
with
91 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import * as React from "react"; | ||
import { IntlConfig } from "react-intl"; | ||
|
||
import WrapperWithIntl from "../src/WrapperWithIntl"; | ||
|
||
export const messages = { | ||
BUTTON: "Button" | ||
}; | ||
|
||
export default class TestWrapperWithIntl< | ||
C extends React.ComponentType<any>, | ||
P extends React.ComponentProps<C> = React.ComponentProps<C> | ||
> extends WrapperWithIntl<C, P> { | ||
protected intlProviderProps: Partial<IntlConfig> = { | ||
messages | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import * as React from "react"; | ||
import { DeepPartial, Middleware } from "redux"; | ||
|
||
import WrapperWithRedux from "../src/WrapperWithRedux"; | ||
import { createStore, TStoreState } from "./store"; | ||
|
||
export default class TestWrapperWithRedux< | ||
C extends React.ComponentType<any>, | ||
S extends {} = TStoreState, | ||
P extends React.ComponentProps<C> = React.ComponentProps<C> | ||
> extends WrapperWithRedux<C, S, P> { | ||
protected createStore( | ||
initialState: DeepPartial<S>, | ||
middlewares: Middleware[] | ||
) { | ||
return createStore(initialState, middlewares); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters