fix: remove expired status from profile filter, show order code
- Drop the now-unused "expired" filter option/status (the API never returns expired services anymore). - Show the order code next to each service in the config card and in the service details modal. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KMLvfLviDB12t4U9UijE4k
This commit is contained in:
@@ -18,6 +18,7 @@ const ModalConfigDetails = ({
|
||||
setIsOpen,
|
||||
isDisabled,
|
||||
dateBuy,
|
||||
orderId,
|
||||
nameConfig,
|
||||
isShowTraffic,
|
||||
textCopy,
|
||||
@@ -36,6 +37,7 @@ const ModalConfigDetails = ({
|
||||
setIsOpen: Dispatch<SetStateAction<boolean>>;
|
||||
isDisabled: boolean;
|
||||
dateBuy: string;
|
||||
orderId?: number;
|
||||
nameConfig: string;
|
||||
isShowTraffic: boolean;
|
||||
textCopy: string;
|
||||
@@ -86,6 +88,11 @@ const ModalConfigDetails = ({
|
||||
<div className="w-full h-full flex flex-col p-3 gap-4 border-2 border-gray-800 rounded-md max-sm:text-xs max-md:text-sm text-base">
|
||||
<h1 className="w-full h-full text-center rounded-md p-1 md:p-2 bg-gray-800">
|
||||
تاریخ خرید : {dateBuy}
|
||||
{orderId && (
|
||||
<span className="block text-xs opacity-70 mt-1">
|
||||
کد سفارش : #{orderId}
|
||||
</span>
|
||||
)}
|
||||
</h1>
|
||||
<div className="w-full h-full flex flex-row-reverse gap-2 flex-wrap justify-center items-center">
|
||||
{isDisabled || useMaxTraffic ? (
|
||||
|
||||
Reference in New Issue
Block a user