Files
ember-market-frontend/components/layout/KeepOnlineWrapper.tsx
g 0176f89cb7 Add CSV export for orders and update UI symbols
Introduces an exportOrdersToCSV function in lib/api-client.ts to allow exporting orders by status as a CSV file. Updates various UI components to use the '•' (bullet) symbol instead of '·' (middle dot) and replaces some emoji/unicode characters for improved consistency and compatibility. Also normalizes the 'use client' directive to include a BOM in many files.
2025-12-15 17:57:18 +00:00

18 lines
425 B
TypeScript

"use client";
import { usePathname } from "next/navigation";
import KeepOnline from "@/components/KeepOnline";
const KeepOnlineWrapper = () => {
const pathname = usePathname();
// Don't show KeepOnline on admin pages or non-dashboard pages
if (!pathname?.includes("/dashboard") || pathname?.includes("/dashboard/admin")) {
return null;
}
return <KeepOnline />;
};
export default KeepOnlineWrapper;