diff --git a/apps/mobile/src/App.tsx b/apps/mobile/src/App.tsx
index c8ea98ef..9763132e 100644
--- a/apps/mobile/src/App.tsx
+++ b/apps/mobile/src/App.tsx
@@ -1,5 +1,3 @@
-import { DndProvider } from 'react-dnd'
-import { HTML5Backend } from 'react-dnd-html5-backend'
import { Redirect, Route } from 'react-router-dom'
import { DarkMode } from '@aparajita/capacitor-dark-mode'
import { SafeArea } from '@capacitor-community/safe-area'
@@ -30,6 +28,11 @@ import '@ionic/react/css/text-alignment.css'
import '@ionic/react/css/text-transformation.css'
import '@ionic/react/css/flex-utils.css'
import '@ionic/react/css/display.css'
+//
+import 'react-grid-layout/css/styles.css'
+import 'react-resizable/css/styles.css'
+import 'react-datepicker/dist/react-datepicker.css'
+import '@glideapps/glide-data-grid/dist/index.css'
/**
* Ionic Dark Mode
* -----------------------------------------------------
@@ -142,26 +145,25 @@ const App: React.FC = () => {
return (
+
-
-
-
-
-
-
-
-
-
-
-
- }>
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+ }>
+
+
+
+
+
+
)
diff --git a/apps/mobile/src/components/AreaList.tsx b/apps/mobile/src/components/AreaList.tsx
index 3208eeab..c444f62d 100644
--- a/apps/mobile/src/components/AreaList.tsx
+++ b/apps/mobile/src/components/AreaList.tsx
@@ -51,7 +51,21 @@ export const AreaList: React.FC = () => {
return (
-
My areas
+
+
My areas
+
+
+
+
{areas.map((item) => (
@@ -81,22 +95,6 @@ export const AreaList: React.FC = () => {
))}
-
-
-
-
)
diff --git a/apps/mobile/src/components/Footer.tsx b/apps/mobile/src/components/Footer.tsx
index 36659852..3d213df3 100644
--- a/apps/mobile/src/components/Footer.tsx
+++ b/apps/mobile/src/components/Footer.tsx
@@ -3,7 +3,6 @@ import { useHomeTab } from '@/hooks/useHomeTab'
import { IonFooter, IonToolbar } from '@ionic/react'
import { PlusIcon } from 'lucide-react'
import { Button } from '@penx/uikit/button'
-import { cn } from '@penx/utils'
interface Props {
onAdd: () => void
@@ -13,63 +12,27 @@ export const Footer = ({ onAdd }: Props) => {
const { setType } = useHomeTab()
return (
-
+
-
+
-
-
-
-
diff --git a/apps/mobile/src/components/Menu.tsx b/apps/mobile/src/components/Menu.tsx
index 381b3531..29e0c8bc 100644
--- a/apps/mobile/src/components/Menu.tsx
+++ b/apps/mobile/src/components/Menu.tsx
@@ -1,6 +1,10 @@
+import { useEffect, useRef } from 'react'
import { Capacitor } from '@capacitor/core'
import { IonContent, IonMenu } from '@ionic/react'
+import { AreaWidgets } from '@penx/components/area-widgets/AreaWidgets'
+import { useMobileMenu } from '@penx/hooks/useMobileMenu'
import { useSession } from '@penx/session'
+import { store } from '@penx/store'
import { cn } from '@penx/utils'
import { AreaList } from './AreaList'
import { MobileModeToggle } from './MobileModeToggle'
@@ -8,12 +12,22 @@ import { MobileModeToggle } from './MobileModeToggle'
const platform = Capacitor.getPlatform()
const Menu: React.FC = () => {
+ const { setMenu } = useMobileMenu()
const { isLoading } = useSession()
+ const menu = useRef
(null)
- if (isLoading) return null
+ useEffect(() => {
+ setMenu(menu)
+ }, [menu])
return (
-
+