hatchways / team-callback-cats

0 stars 2 forks source link

Protected route #45

Closed Gamey001 closed 3 years ago

Gamey001 commented 3 years ago

Created a protected route component

What this PR does:

Screenshots / Videos:

Any information needed to test this feature:

-The Dashboard route was used to Test this feature, try to visit the '/dashboard' route -Pen the console and check whether the useEffect(ComponentDidMount) hook of the private component has ran -A user is logged in by default, you can change the login status in the protected route component

Any issues with the current functionality (optional):