mirror of
https://github.com/perfect-panel/ppanel-web.git
synced 2026-02-06 11:40:28 -05:00
- 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.
18 lines
457 B
TypeScript
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>
|
|
);
|
|
}
|