This commit is contained in:
Max Lynch
2020-12-30 16:27:38 -06:00
parent 1a8d9c529e
commit e115a5a7ce
7 changed files with 71 additions and 49 deletions
+15 -8
View File
@@ -1,3 +1,4 @@
import usePage from '../../hooks/usePage';
import Store from '../../store';
import * as actions from '../../store/actions';
import * as selectors from '../../store/selectors';
@@ -31,17 +32,23 @@ const AllLists = ({ onSelect }) => {
};
const Lists = ({ selected }) => {
usePage({
title: 'Lists',
});
return (
<Content visible={true} className="p-4 dark:bg-black">
<List className="h-full w-full">
{selected && (
<AllLists
onSelect={list => {
actions.setSelectedList(list);
actions.setPageById('list-detail');
}}
/>
)}
{/*selected && (*/}
<AllLists
onSelect={list => {
/*
actions.setSelectedList(list);
actions.setPageById('list-detail');
*/
}}
/>
{/*)}*/}
</List>
</Content>
);