mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 07:47:04 +00:00
Merge pull request #17557 from tkrotoff/react-router
react-router: small refactoring => moving files around
This commit is contained in:
@@ -1 +0,0 @@
|
||||
Examples taken from https://github.com/ReactTraining/react-router/tree/22bd52c901ef0312348c2b02549c7102bd5653ae/packages/react-router-website/modules/examples
|
||||
+1
-1
@@ -130,7 +130,7 @@ const ImageView: React.SFC<RouteComponentProps<{ id: string }>> = ({ match }) =>
|
||||
const Modal: React.SFC<RouteComponentProps<{ id: string }>> = ({ match, history }) => {
|
||||
const image = IMAGES[parseInt(match.params.id, 10)];
|
||||
if (!image) {
|
||||
return null!;
|
||||
return null;
|
||||
}
|
||||
const back = (e: React.MouseEvent<HTMLElement>) => {
|
||||
e.stopPropagation();
|
||||
@@ -0,0 +1,5 @@
|
||||
Examples taken from react-router website.
|
||||
|
||||
Please keep them in sync and as close as possible to the original ones.
|
||||
|
||||
See https://github.com/ReactTraining/react-router/tree/22bd52c901ef0312348c2b02549c7102bd5653ae/packages/react-router-website/modules/examples
|
||||
@@ -14,22 +14,24 @@
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"test/Ambiguous.tsx",
|
||||
"test/Animation.tsx",
|
||||
"test/Auth.tsx",
|
||||
"test/Basic.tsx",
|
||||
|
||||
"test/examples-from-react-router-website/Ambiguous.tsx",
|
||||
"test/examples-from-react-router-website/Animation.tsx",
|
||||
"test/examples-from-react-router-website/Auth.tsx",
|
||||
"test/examples-from-react-router-website/Basic.tsx",
|
||||
"test/examples-from-react-router-website/CustomLink.tsx",
|
||||
"test/examples-from-react-router-website/ModalGallery.tsx",
|
||||
"test/examples-from-react-router-website/NoMatch.tsx",
|
||||
"test/examples-from-react-router-website/Params.tsx",
|
||||
"test/examples-from-react-router-website/PreventingTransitions.tsx",
|
||||
"test/examples-from-react-router-website/Recursive.tsx",
|
||||
"test/examples-from-react-router-website/RouteConfig.tsx",
|
||||
"test/examples-from-react-router-website/Sidebar.tsx",
|
||||
"test/examples-from-react-router-website/StaticRouter.tsx",
|
||||
|
||||
"test/Children.tsx",
|
||||
"test/CustomLink.tsx",
|
||||
"test/ModalGallery.tsx",
|
||||
"test/NavigateWithContext.tsx",
|
||||
"test/MemoryRouter.tsx",
|
||||
"test/NoMatch.tsx",
|
||||
"test/Params.tsx",
|
||||
"test/PreventingTransitions.tsx",
|
||||
"test/Recursive.tsx",
|
||||
"test/RouteConfig.tsx",
|
||||
"test/Sidebar.tsx",
|
||||
"test/StaticRouter.tsx",
|
||||
"test/Switch.tsx",
|
||||
"test/WithRouter.tsx"
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user