On hitting accept, the user preferences are saved in a cookie expiring in the year 9999.
On page mount, the component reads and parses the page cookies looking for the cookie key. If found, it automatically accepts the user preferences and closes the modal.
A showModal ref is added to prevent the banner from briefly flashing until the cookie contents have been read and parsed.
On hitting accept, the user preferences are saved in a cookie expiring in the year 9999.
On page mount, the component reads and parses the page cookies looking for the cookie key. If found, it automatically accepts the user preferences and closes the modal.
A showModal ref is added to prevent the banner from briefly flashing until the cookie contents have been read and parsed.
Closes #12