diff --git a/app/Components/Area_sidebar.tsx b/app/Components/Area_sidebar.tsx index a94d77b..d172def 100644 --- a/app/Components/Area_sidebar.tsx +++ b/app/Components/Area_sidebar.tsx @@ -16,6 +16,15 @@ export default function Sidebar({ isOpen = true, onClose }: SidebarProps) { const [userRole, setUserRole] = useState(null); const [loading, setLoading] = useState(true); + const downloadAPK = async () => { + const link = document.createElement("a"); + link.href = "/client.apk"; + link.download = "area-client.apk"; + document.body.appendChild(link); + link.click(); + document.body.removeChild(link); + }; + const getUserId = async () => { try { const token = localStorage.getItem("authToken"); @@ -77,9 +86,7 @@ export default function Sidebar({ isOpen = true, onClose }: SidebarProps) { }; if (loading) { - return ( -
- ); + return
; } return ( @@ -129,6 +136,12 @@ export default function Sidebar({ isOpen = true, onClose }: SidebarProps) { )} +
); -} \ No newline at end of file +} diff --git a/app/Services/page.tsx b/app/Services/page.tsx index 9f4940a..d3c1dc1 100644 --- a/app/Services/page.tsx +++ b/app/Services/page.tsx @@ -76,7 +76,6 @@ export default function ServicesPage() { throw new Error("Failed to fetch services status"); } const data = await response.json(); - console.log("Fetched services status:", data); setServicesStatus(data || []); return data; } catch (err) {