Skip to content

Commit cf44f0e

Browse files
Remove div tags and text translations in the code
1 parent c7f0217 commit cf44f0e

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

src/content/learn/queueing-a-series-of-state-updates.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -296,17 +296,17 @@ export default function RequestTracker() {
296296
}
297297

298298
return (
299-
<div dir="rtl">
299+
<>
300300
<h3>
301-
در انتظار: {pending}
301+
Pending: {pending}
302302
</h3>
303303
<h3>
304-
کامل شده: {completed}
304+
Completed: {completed}
305305
</h3>
306306
<button onClick={handleClick}>
307-
خرید
307+
Buy
308308
</button>
309-
</div>
309+
</>
310310
);
311311
}
312312

@@ -340,17 +340,17 @@ export default function RequestTracker() {
340340
}
341341

342342
return (
343-
<div dir="rtl">
343+
<>
344344
<h3>
345-
در انتظار: {pending}
345+
Pending: {pending}
346346
</h3>
347347
<h3>
348-
کامل شده: {completed}
348+
Completed: {completed}
349349
</h3>
350350
<button onClick={handleClick}>
351-
خرید
351+
Buy
352352
</button>
353-
</div>
353+
</>
354354
);
355355
}
356356

@@ -469,10 +469,10 @@ function TestCase({
469469
}) {
470470
const actual = getFinalState(baseState, queue);
471471
return (
472-
<div dir="rtl">
473-
<p><span style={{display: "inline-block"}}>مقدار اولیه state: </span><b>{baseState}</b></p>
474-
<p>صف: <b>[{queue.join(', ')}]</b></p>
475-
<p>نتیجه&zwnj;ی مورد انتظار: <b>{expected}</b></p>
472+
<>
473+
<p>Base state: <b>{baseState}</b></p>
474+
<p>Queue: <b>[{queue.join(', ')}]</b></p>
475+
<p>Expected result: <b>{expected}</b></p>
476476
<p style={{
477477
color: actual === expected ?
478478
'green' :
@@ -481,11 +481,11 @@ function TestCase({
481481
نتیجه&zwnj;ی کار شما: <b>{actual}</b>
482482
{' '}
483483
({actual === expected ?
484-
'صحیح' :
485-
'اشتباه'
484+
'correct' :
485+
'wrong'
486486
})
487487
</p>
488-
</div>
488+
</>
489489
);
490490
}
491491
```
@@ -573,19 +573,19 @@ function TestCase({
573573
const actual = getFinalState(baseState, queue);
574574
return (
575575
<div dir="rtl">
576-
<p><span style={{display: "inline-block"}}>مقدار اولیه state:</span> <b>{baseState}</b></p>
577-
<p>صف: <b>[{queue.join(', ')}]</b></p>
578-
<p>نتیجه&zwnj;ی مورد انتظار: <b>{expected}</b></p>
576+
<p>Base state: <b>{baseState}</b></p>
577+
<p>Queue: <b>[{queue.join(', ')}]</b></p>
578+
<p>Expected result: <b>{expected}</b></p>
579579
<p style={{
580580
color: actual === expected ?
581581
'green' :
582582
'red'
583583
}}>
584-
نتیجه&zwnj;ی کار شما: <b>{actual}</b>
584+
Expected result: <b>{actual}</b>
585585
{' '}
586586
({actual === expected ?
587-
'صحیح' :
588-
'اشتباه'
587+
'correct' :
588+
'wrong'
589589
})
590590
</p>
591591
</div>

0 commit comments

Comments
 (0)