Settings and notifications

This commit is contained in:
Max Lynch
2020-12-24 17:24:38 -06:00
parent 06c1a8f71d
commit 0b31a80d02
9 changed files with 253 additions and 5 deletions
+7 -2
View File
@@ -15,16 +15,21 @@ import TabBar from '../components/ui/TabBar';
import { SafeAreaProvider } from '../components/ui/SafeArea';
import Notifications from '../components/Notifications';
import MenuContent from '../components/MenuContent';
import { useEffect, useState } from 'react';
const CurrentPage = ({ page }) => {
const pages = Store.useState(selectors.getPages);
const currentPage = Store.useState(selectors.getCurrentPage);
const Page = currentPage.component;
return (
<PageStack>
{pages.map(p => {
{/*pages.map(p => {
const Page = p.component;
return <Page selected={page.id === p.id} key={p.id} />;
})}
})*/}
<Page selected={true} />
</PageStack>
);
};