parent
dcd94e355c
commit
909efc7154
12 changed files with 113 additions and 303 deletions
@ -1,35 +1,45 @@ |
||||
export function OrderLevel({ value }) { |
||||
return ( |
||||
<div className="p-2 rounded-3xl border border-gray-300 w-fit"> |
||||
{(() => { |
||||
switch(value) { |
||||
case 1: |
||||
return <div className="flex flex-row items-center justify-center "> |
||||
<span className="w-2 h-2 rounded-full ml-2" style={{ backgroundColor: "#65FFAD" }}></span> |
||||
<span style={{ color: "#00253A" }} className="">وضعیت عادی</span> |
||||
</div>; |
||||
case 2: |
||||
return <div className="flex flex-row items-center justify-center "> |
||||
<span className="w-2 h-2 rounded-full ml-2" style={{ backgroundColor: "#FF6565" }}></span> |
||||
<span style={{ color: "#00253A" }} className="">اعلان سطح هشدار</span> |
||||
</div>; |
||||
case 3: |
||||
return <div className="flex flex-row items-center justify-center "> |
||||
<span className="w-2 h-2 rounded-full ml-2" style={{ backgroundColor: "#65DAFF" }}></span> |
||||
<span style={{ color: "#00253A" }} className="">بررسی و پیگیری</span> |
||||
</div>; |
||||
case 4: |
||||
return <div className="flex flex-row items-center justify-center "> |
||||
<span className="w-2 h-2 rounded-full ml-2" style={{ backgroundColor: "#FFEA65" }}></span> |
||||
<span style={{ color: "#00253A" }} className="">وضعیت بحرانی</span> |
||||
</div>; |
||||
default: |
||||
return <div className="flex flex-row items-center justify-center "> |
||||
<span className="w-2 h-2 rounded-full ml-2" style={{ backgroundColor: "#CCFF65" }}></span> |
||||
<span style={{ color: "#00253A" }} className="">وضعیت پایدار</span> |
||||
</div>; |
||||
} |
||||
})()} |
||||
</div> |
||||
); |
||||
} |
||||
return ( |
||||
<div className="p-2 rounded-3xl border border-gray-300 w-fit"> |
||||
{(() => { |
||||
switch (value) { |
||||
case 1: |
||||
return ( |
||||
<div className="flex flex-row items-center justify-center "> |
||||
<span className="w-2 h-2 rounded-full ml-2 bg-[#65FFAD]"></span> |
||||
<span className="text-[#00253A]">وضعیت عادی</span> |
||||
</div> |
||||
); |
||||
case 2: |
||||
return ( |
||||
<div className="flex flex-row items-center justify-center "> |
||||
<span className="w-2 h-2 rounded-full ml-2 bg-[#FF6565]"></span> |
||||
<span className="text-[#00253A]">اعلان سطح هشدار</span> |
||||
</div> |
||||
); |
||||
case 3: |
||||
return ( |
||||
<div className="flex flex-row items-center justify-center "> |
||||
<span className="w-2 h-2 rounded-full ml-2 bg-[#65DAFF]"></span> |
||||
<span className="text-[#00253A]">بررسی و پیگیری</span> |
||||
</div> |
||||
); |
||||
case 4: |
||||
return ( |
||||
<div className="flex flex-row items-center justify-center "> |
||||
<span className="w-2 h-2 rounded-full ml-2 bg-[#FFEA65]"></span> |
||||
<span className="text-[#00253A]">وضعیت بحرانی</span> |
||||
</div> |
||||
); |
||||
default: |
||||
return ( |
||||
<div className="flex flex-row items-center justify-center "> |
||||
<span className="w-2 h-2 rounded-full ml-2 bg-[#CCFF65]"></span> |
||||
<span className="text-[#00253A]">وضعیت پایدار</span> |
||||
</div> |
||||
); |
||||
} |
||||
})()} |
||||
</div> |
||||
); |
||||
} |
||||
|
Loading…
Reference in new issue