diff --git a/src/screens/DailyLogsPage.tsx b/src/screens/DailyLogsPage.tsx index 2de0cd2..f107453 100644 --- a/src/screens/DailyLogsPage.tsx +++ b/src/screens/DailyLogsPage.tsx @@ -3,8 +3,8 @@ import { Modal } from '../components/reusable'; import { DailyLogsView } from '../components/rv'; import { DailyLogDetail } from '../components/dv'; import { useState } from 'react'; -import { Button } from '../components/buttons/Button'; -import { Plus } from 'lucide-react'; + +import { ClipboardList } from 'lucide-react'; import { DynamicForm } from '../components/forms/DynamicForm'; import { DAILY_REPORTS } from '../api/config'; import { dailyReportsClient } from '../api/clients'; @@ -27,17 +27,20 @@ export function DailyLogsPage() { const id = row.instance_id as number | string | undefined; if (id != null) navigate(`/daily/${id}`); }} - headerActions={ - - } onPunchOutRow={(row) => { setPunchOutInstanceId(row.instance_id as string | number); setPunchOutTitle("Punch Out"); }} /> + {/* Global Floating Action Button for Punch In */} + + setIsCreating(false)} diff --git a/src/screens/OrdersPage.tsx b/src/screens/OrdersPage.tsx index 26e3044..0b21a6e 100644 --- a/src/screens/OrdersPage.tsx +++ b/src/screens/OrdersPage.tsx @@ -3,8 +3,8 @@ import { Modal } from '../components/reusable'; import { OrdersView } from '../components/rv'; import { OrderDetail } from '../components/dv'; import { useState } from 'react'; -import { Button } from '../components/buttons/Button'; -import { Plus } from 'lucide-react'; + +import { ShoppingBag } from 'lucide-react'; import { DynamicForm } from '../components/forms/DynamicForm'; import { ORDER_BOOKING } from '../api/config'; import { orderBookingClient } from '../api/clients'; @@ -26,13 +26,16 @@ export function OrdersPage() { const id = row.instance_id as number | string | undefined; if (id != null) navigate(`/orders/${id}`); }} - headerActions={ - - } /> + {/* Global Floating Action Button for Place Order */} + + setIsCreating(false)} diff --git a/src/screens/StoresPage.tsx b/src/screens/StoresPage.tsx index b68cec6..e7992f2 100644 --- a/src/screens/StoresPage.tsx +++ b/src/screens/StoresPage.tsx @@ -3,8 +3,8 @@ import { useNavigate, useParams } from 'react-router-dom'; import { Modal } from '../components/reusable'; import { StoresView } from '../components/rv'; import { StoreDetail } from '../components/dv'; -import { Button } from '../components/buttons/Button'; -import { Plus } from 'lucide-react'; + +import { Store } from 'lucide-react'; import { DynamicForm } from '../components/forms/DynamicForm'; import { STORE } from '../api/config'; import { storeClient } from '../api/clients'; @@ -27,17 +27,20 @@ export function StoresPage() { const id = row.instance_id as number | string | undefined; if (id != null) navigate(`/stores/${id}`); }} - headerActions={ - - } onEditRow={(row) => { setEditingInstanceId(row.instance_id as string | number); setEditTitle("Edit Store"); }} /> + {/* Global Floating Action Button for Create Store */} + + setIsCreating(false)}