From 5691bee3266d7417fb0d8b7fefb5bb11c59fb246 Mon Sep 17 00:00:00 2001 From: nanowrit <59661202+nanowrit@users.noreply.github.com> Date: Fri, 7 Feb 2020 19:21:03 -0700 Subject: [PATCH] Update Routes.js Re: the link at the end of [Handle Forgot and Reset Password](https://serverless-stack.com/chapters/handle-forgot-and-reset-password.html) Chapter to make this resource more congruent with the material covered through the basics section. I'm basically proposing that these changes be made so that this material is more consistent with the material that usually follows "Add this to [SOME_FILE].js" in the 'The Basics' section. --- src/Routes.js | 60 +++++++++------------------------------------------ 1 file changed, 10 insertions(+), 50 deletions(-) diff --git a/src/Routes.js b/src/Routes.js index 58e5a06..512773d 100644 --- a/src/Routes.js +++ b/src/Routes.js @@ -16,59 +16,19 @@ import AppliedRoute from "./components/AppliedRoute"; import AuthenticatedRoute from "./components/AuthenticatedRoute"; import UnauthenticatedRoute from "./components/UnauthenticatedRoute"; -export default ({ childProps }) => ( +export default function Routes({ appProps }) => ( - + - - - + + + - - - - - + + + + + {/* Finally, catch all unmatched routes */}