Skip to content

Commit 8932984

Browse files
committed
adding the status fields
1 parent b728823 commit 8932984

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/components/common/status/Status.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,26 @@ export default function Status({ type, status, ago }: { type?: boolean; status?:
99
<span className="font-normal text-[12px] leading-5 text-dark-600">Success</span>
1010
</span>
1111
)}
12-
{type === false && status == "failed" && (
12+
{type === false && (status == 'failed' || status == 'FAILED') && (
1313
<span className="flex items-center px-3 py-px gap-2 rounded-full border border-[#d81a14]">
1414
<img src="/images/failed.svg" alt="" />
1515
<span className="font-normal text-[12px] leading-5 text-dark-600">Failed</span>
1616
</span>
1717
)}
18-
{status === 'pending' && (
18+
{status === 'pending' && (
1919
<span className="flex items-center px-3 py-px gap-2 rounded-full border border-[#d81a14]">
2020
<img src="/images/pending.svg" alt="" />
2121
<span className="font-normal text-[12px] leading-5 text-dark-600">Failed</span>
2222
</span>
2323
)}
24-
{status === 'altmempool' && (
25-
<span className="flex items-center px-3 py-[0.3rem] gap-2 rounded-full border border-[#FB8C00]">
24+
{status === 'IN_BUNDLER_MEMPOOL' && (
25+
<span className="flex items-center px-3 py-[0.3rem] w-[150px] gap-2 rounded-full border border-[#FB8C00]">
2626
<img src="/images/pending.svg" alt="" />
2727
<span className="font-normal text-[12px] leading-5 text-dark-600">In Alt Mempool</span>
2828
</span>
2929
)}
30-
{status === 'mainmempool' && (
31-
<span className="flex items-center px-3 py-[0.3rem] gap-2 rounded-full border border-[#FB8C00]">
30+
{status === 'IN_EVM_MEMPOOL' && (
31+
<span className="flex items-center px-3 py-[0.3rem] w-[150px] gap-2 rounded-full border border-[#FB8C00]">
3232
<img src="/images/pending.svg" alt="" />
3333
<span className="font-normal text-[12px] leading-5 text-dark-600">In Main Mempool</span>
3434
</span>

0 commit comments

Comments
 (0)