diff --git a/components/ui/Tab.jsx b/components/ui/Tab.jsx
index 9b3ec60..8ddf3f7 100644
--- a/components/ui/Tab.jsx
+++ b/components/ui/Tab.jsx
@@ -4,12 +4,6 @@ import { Link } from 'wouter';
import { useEffect, useState } from 'react';
const Tab = ({ title, href, icon, selected, selectedIcon, onClick }) => {
- console.log('TAB', href, selected);
- const [update, setUpdate] = useState(false);
- useEffect(() => {
- setUpdate(true);
- }, [selected]);
-
return (
{
// that's why we store the last pathname in a ref.
const checkForUpdates = () => {
const pathname = getCurrentPathname(base);
- console.log('CHECK FOR UPDATES', pathname);
prevPath.current !== pathname && update((prevPath.current = pathname));
};
diff --git a/hooks/usePage.js b/hooks/usePage.js
index e86d87a..bd46e05 100644
--- a/hooks/usePage.js
+++ b/hooks/usePage.js
@@ -3,6 +3,7 @@ import Store from '../store';
const usePage = fields => {
useEffect(() => {
+ console.log('Use page effect');
Store.update(s => {
s.currentPage = fields;
});
diff --git a/store/actions.js b/store/actions.js
index 312affb..f89683d 100644
--- a/store/actions.js
+++ b/store/actions.js
@@ -23,7 +23,6 @@ export const setSettings = settings => {
export const setDone = (list, item, done) => {
Store.update((s, o) => {
const listIndex = o.lists.findIndex(l => l === list);
- console.log('Setting done', list, item, done, o.lists, listIndex);
const itemIndex = o.lists[listIndex].items.findIndex(i => i === item);
s.lists[listIndex].items[itemIndex].done = done;
if (list === o.selectedList) {
@@ -31,9 +30,3 @@ export const setDone = (list, item, done) => {
}
});
};
-
-export const setSelectedList = list => {
- Store.update(s => {
- s.selectedList = list;
- });
-};