0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 18:32:41 +00:00

Simplify dropdown & convert to Functional Component

This commit is contained in:
Trevor Buckner
2023-07-07 20:38:56 -04:00
parent 0d44e1778f
commit 48474c6f7b
3 changed files with 44 additions and 64 deletions

View File

@@ -121,6 +121,7 @@ const RecentItems = createClass({
removeItem : function(url, evt){
evt.preventDefault();
evt.stopPropagation();
let edited = JSON.parse(localStorage.getItem(EDIT_KEY) || '[]');
let viewed = JSON.parse(localStorage.getItem(VIEW_KEY) || '[]');