-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify logic for cookie consent (#1241)
First of all, I apologize that I could not make this suggestion as a part of review. It is still challenging for me to make a suggestion without actually touching the code. This PR handles several things. The first to fix is cookieconsent form gradually disappears on the first page load. The second is not depending on session storage - mainly because I feel like it was diverging the logic flow - but if I am missing anything, please feel free to close this. The third is moving out the utility function outside of the component, so it doesn't have to be declared as a dependency of useEffect hook.
- Loading branch information
Showing
4 changed files
with
128 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters