reversed map order

This commit is contained in:
VividTruthKeeper 2022-04-19 11:41:03 +05:00
parent c3dd5517cc
commit 721a702871
3 changed files with 2 additions and 18 deletions

View File

@ -46,7 +46,7 @@ const Base = () => {
{user ? (
user.online_credit.length !== 0 ? (
user.online_credit.map((el, i) => {
[...user.online_credit].reverse().map((el, i) => {
return (
<tr key={i}>
<td>#{el.id}</td>
@ -91,10 +91,6 @@ const Base = () => {
</div>
<img src={allert} alt="reject" />
</div>
) : el.status !== "4" && el.status !== "2" ? (
<div>
<img src={nul} alt="null" />
</div>
) : (
""
)}
@ -184,10 +180,6 @@ const Base = () => {
</div>
<img src={allert} alt="reject" />
</div>
) : el.status !== "4" && el.status !== "2" ? (
<div>
<img src={nul} alt="null" />
</div>
) : (
""
)}

View File

@ -151,10 +151,6 @@ const Cards = () => {
</div>
<img src={allert} alt="reject" />
</div>
) : el.status !== "4" && el.status !== "2" ? (
<div>
<img src={nul} alt="null" />
</div>
) : (
""
)}

View File

@ -127,7 +127,7 @@ const Credits = () => {
</tr>
{user ? (
user.online_credit.length !== 0 ? (
user.online_credit.map((el, i) => {
[...user.online_credit].reverse().map((el, i) => {
return (
<tr key={i}>
<td>#{el.id}</td>
@ -172,10 +172,6 @@ const Credits = () => {
</div>
<img src={allert} alt="reject" />
</div>
) : el.status !== "4" && el.status !== "2" ? (
<div>
<img src={nul} alt="null" />
</div>
) : (
""
)}