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.
18 lines
425 B
TypeScript
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;
|