Merge pull request #17557 from tkrotoff/react-router

react-router: small refactoring => moving files around
This commit is contained in:
Paul van Brenk
2017-06-28 11:35:29 -07:00
committed by GitHub
16 changed files with 21 additions and 15 deletions
-1
View File
@@ -1 +0,0 @@
Examples taken from https://github.com/ReactTraining/react-router/tree/22bd52c901ef0312348c2b02549c7102bd5653ae/packages/react-router-website/modules/examples
@@ -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
+15 -13
View File
@@ -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"
]