Skip to content

Commit 4e70aa5

Browse files
committed
feat: set dir=rtl & translate users name in an example
1 parent c400254 commit 4e70aa5

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

src/content/learn/managing-state.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ function submitForm(answer) {
102102
```
103103

104104
```css
105+
body { direction: rtl; }
105106
.Error { color: red; }
106107
```
107108

@@ -217,6 +218,7 @@ export default function Form() {
217218
```
218219

219220
```css
221+
body { direction: rtl; }
220222
label { display: block; margin-bottom: 5px; }
221223
```
222224

@@ -286,6 +288,7 @@ function Panel({
286288
```
287289

288290
```css
291+
body { direction: rtl; }
289292
h3, p { margin: 5px 0px; }
290293
.panel {
291294
padding: 10px;
@@ -329,9 +332,9 @@ export default function Messenger() {
329332
}
330333

331334
const contacts = [
332-
{ name: 'Taylor', email: 'taylor@mail.com' },
333-
{ name: 'Alice', email: 'alice@mail.com' },
334-
{ name: 'Bob', email: 'bob@mail.com' }
335+
{ name: 'علي', email: 'ali12@mail.com' },
336+
{ name: 'هند', email: 'hend@mail.com' },
337+
{ name: 'سعد', email: 'sa2d@mail.com' }
335338
];
336339
```
337340

@@ -379,6 +382,7 @@ export default function Chat({ contact }) {
379382
```
380383

381384
```css
385+
body { direction: rtl; }
382386
.chat, .contact-list {
383387
float: left;
384388
margin-bottom: 20px;
@@ -424,9 +428,9 @@ export default function Messenger() {
424428
}
425429

426430
const contacts = [
427-
{ name: 'Taylor', email: 'taylor@mail.com' },
428-
{ name: 'Alice', email: 'alice@mail.com' },
429-
{ name: 'Bob', email: 'bob@mail.com' }
431+
{ name: 'علي', email: 'ali12@mail.com' },
432+
{ name: 'هند', email: 'hend@mail.com' },
433+
{ name: 'سعد', email: 'sa2d@mail.com' }
430434
];
431435
```
432436

@@ -474,6 +478,7 @@ export default function Chat({ contact }) {
474478
```
475479

476480
```css
481+
body { direction: rtl; }
477482
.chat, .contact-list {
478483
float: left;
479484
margin-bottom: 20px;

0 commit comments

Comments
 (0)