diff --git a/components/pages/Home.tsx b/components/pages/Home.tsx
index 528840e..eece466 100644
--- a/components/pages/Home.tsx
+++ b/components/pages/Home.tsx
@@ -13,7 +13,6 @@ import {
IonGrid,
IonHeader,
IonIcon,
- IonImg,
IonInfiniteScroll,
IonInfiniteScrollContent,
IonInput,
@@ -23,7 +22,6 @@ import {
IonMenu,
IonMenuButton,
IonPage,
- IonPopover,
IonReorder,
IonReorderGroup,
IonRow,
@@ -36,18 +34,13 @@ import {
IonToggle,
IonToolbar,
} from '@ionic/react'
-import { useLiveQuery, useObservable } from 'dexie-react-hooks'
+import { useLiveQuery } from 'dexie-react-hooks'
import {
add,
checkmarkDoneCircleSharp,
- cloudDoneSharp,
- cloudDownloadSharp,
- cloudOfflineSharp,
- cloudUploadSharp,
documentText,
filterSharp,
rocketSharp,
- thunderstormSharp,
} from 'ionicons/icons'
import _ from 'lodash'
import {
@@ -61,11 +54,12 @@ import {
import { db, Todo } from '../db'
import NoteProviders from '../notes/providers'
import useSettings from '../settings/useSettings'
+import { getIonIcon } from '../starRoles/icons'
import { SelectedTodoProvider } from '../todos/SelectedTodo'
import { useTodoActionSheet } from '../todos/TodoActionSheet'
import { useCreateTodoModal } from '../todos/create/useCreateTodoModal'
import useView, { ViewProvider } from '../view'
-import { getIonIcon } from '../starRoles/icons'
+import { Header } from '../common/Header'
const Home = () => {
const [logLimit, setLogLimit] = useState(7)
@@ -106,7 +100,7 @@ const Home = () => {
-
+
{
export default Home
-export const Header = () => {
- const user = useObservable(db.cloud.currentUser)
- const syncState = useObservable(db.cloud.syncState)
- const isLoggedIn = user?.isLoggedIn
-
- return (
-
-
-
- Starfocus
-
- {isLoggedIn ? (
- <>
-
-
-
-
- {syncState?.error ? (
- Sync error: ${syncState.error.message}
- ) : (
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- )}
-
-
-
- {
- db.cloud.logout()
- }}
- >
- Unsync
-
- >
- ) : (
- <>
-
-
-
-
- Not synced. Your data is stored locally only.
-
-
-
- {
- db.cloud.login()
- }}
- >
- Sync
-
- >
- )}
-
-
-
- )
-}
-
export const SyncState = () => {}
export const MiscMenu = () => {
diff --git a/pages/app-demo.tsx b/pages/app-demo.tsx
index 7fb5223..de9bb14 100644
--- a/pages/app-demo.tsx
+++ b/pages/app-demo.tsx
@@ -1,4 +1,4 @@
-import App from '../components/app'
+import App from 'next/app'
export default function AppDemo() {
// useEffect(setupAnimations, [])