Readjusted code to not use localstorage, and just used redux for indicator

This commit is contained in:
Eshwar Tangirala
2025-05-22 20:10:52 -04:00
parent 0199a36238
commit 7b33717333
4 changed files with 18 additions and 27 deletions

View File

@@ -71,10 +71,6 @@ export function TreeNode(props: TreeNodeProps) {
py={1}
pl={props.level * 20}
className={`${classes.node} cf-treenode cf-treenode-${props.type}`}
onClick={e => {
props.onClick(e, props.id)
props.type === "feed" && localStorage.setItem(`feed-${props.id}-unread`, props.unread.toString())
}}
data-id={props.id}
data-type={props.type}
data-unread-count={props.unread}