(A brief explanation synthesizing the feature, bug or fix.)
get user details without authentication on login
redirect to home/login based on saved user in localStorage
add unit test for custom hooks
add global context Provider and subscribe to changes
Checklist
(Go over all the following points, and put an x in all the boxes that apply.)
(If you're unsure about any of these, don't hesitate to ask. We're here to help!)
[x] My code follows the code style of this project.
[x] Make sure that you don't have [WIP] if you have completed your PR.
[x] I am choosing the correct base branch to merge.
[x] I have added tests to cover my changes.
[x] All new and existing tests passed.
[x] And more importantly, I've had fun! :beer:
Where should the reviewer start?
(Explain where the reviewer should start in order to review the whole addition or subtractions.)
Start from ./Router.js. It contains two routes component Login and Home.
How should this be manually tested?
(List of steps to reproduce, corroborate or tests to run. Write this section clear enough so that external users can also follow it and test the fix.)
Any background context you want to provide?
(Any information regarding the PR that the reviewer should know.)
What are the relevant tickets?
(Link to issues, related PR, JIRA issues, etc.)
Resolves: #68
Screenshots
(Screenshots of the feature if available.)
Questions
(If available, to another developer or reviewer.)
:question:
What does this PR do?
(A brief explanation synthesizing the feature, bug or fix.)
Checklist
(Go over all the following points, and put an
x
in all the boxes that apply.) (If you're unsure about any of these, don't hesitate to ask. We're here to help!)Where should the reviewer start?
(Explain where the reviewer should start in order to review the whole addition or subtractions.) Start from
./Router.js
. It contains two routes componentLogin
andHome
.How should this be manually tested?
(List of steps to reproduce, corroborate or tests to run. Write this section clear enough so that external users can also follow it and test the fix.)
Any background context you want to provide?
(Any information regarding the PR that the reviewer should know.)
What are the relevant tickets?
(Link to issues, related PR, JIRA issues, etc.) Resolves: #68
Screenshots
(Screenshots of the feature if available.)
Questions
(If available, to another developer or reviewer.) :question: