ppanel-web/apps/admin/components/order-link.tsx
web 2bcd4cf30c ♻️ refactor: Add localization updates for log and server files across multiple languages
- Added new keys for "server", "subscribe", "detail", "pending", "sending", "sent", and "unknown" in log.json files for various languages.
- Introduced a "type" object with transaction types (Recharge, Withdraw, Purchase, Refund, Reward, Commission) in log.json files for multiple languages.
- Updated "traffic_ratio" to "Ratio" and added "transport" in servers.json for English localization.
- Ensured consistency and accuracy in translations for all affected languages including German, English, Spanish, French, Russian, Chinese, and more.
2025-09-05 04:48:10 -07:00

18 lines
457 B
TypeScript

import { Button } from '@workspace/ui/components/button';
import Link from 'next/link';
interface OrderLinkProps {
orderId?: string | number;
className?: string;
}
export function OrderLink({ orderId, className }: OrderLinkProps) {
if (!orderId) return <span>--</span>;
return (
<Button variant='link' className={`p-0 ${className || ''}`} asChild>
<Link href={`/dashboard/order?search=${orderId}`}>{orderId}</Link>
</Button>
);
}