codeforgso / GoVote

Local voter registration and election candidate application.
http://govotegso.org/
GNU General Public License v3.0
24 stars 46 forks source link

Save the selected voter information in VoterRegLookup to sessionStorage #112

Closed SchaeStewart closed 6 years ago

SchaeStewart commented 6 years ago

This is a:

In multiple places throughout the app we direct people from one page another and if the VoterRegLookup form is on another page the user has to fill out their information again.

Enhancement

Description

Saving the selected voter information into the sessionStorage will prevent users from having to enter their information multiple times.

Implementation

It should work by saving the selected selectedVoter to sessionStorage in VoterRegLookup.
When ever the component is mounted check to see if there is a selectedVoter and save it to state.
Also provide a 'Clear' button that will reset the form and remove the selectedVoter from sessionStorage