Skip to content

Commit

Permalink
feat: set dir=rtl & translate users name in an example
Browse files Browse the repository at this point in the history
  • Loading branch information
AhmedBaset committed Aug 21, 2023
1 parent c400254 commit 4e70aa5
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions src/content/learn/managing-state.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ function submitForm(answer) {
```

```css
body { direction: rtl; }
.Error { color: red; }
```

Expand Down Expand Up @@ -217,6 +218,7 @@ export default function Form() {
```

```css
body { direction: rtl; }
label { display: block; margin-bottom: 5px; }
```

Expand Down Expand Up @@ -286,6 +288,7 @@ function Panel({
```

```css
body { direction: rtl; }
h3, p { margin: 5px 0px; }
.panel {
padding: 10px;
Expand Down Expand Up @@ -329,9 +332,9 @@ export default function Messenger() {
}

const contacts = [
{ name: 'Taylor', email: 'taylor@mail.com' },
{ name: 'Alice', email: 'alice@mail.com' },
{ name: 'Bob', email: 'bob@mail.com' }
{ name: 'علي', email: 'ali12@mail.com' },
{ name: 'هند', email: 'hend@mail.com' },
{ name: 'سعد', email: 'sa2d@mail.com' }
];
```

Expand Down Expand Up @@ -379,6 +382,7 @@ export default function Chat({ contact }) {
```

```css
body { direction: rtl; }
.chat, .contact-list {
float: left;
margin-bottom: 20px;
Expand Down Expand Up @@ -424,9 +428,9 @@ export default function Messenger() {
}

const contacts = [
{ name: 'Taylor', email: 'taylor@mail.com' },
{ name: 'Alice', email: 'alice@mail.com' },
{ name: 'Bob', email: 'bob@mail.com' }
{ name: 'علي', email: 'ali12@mail.com' },
{ name: 'هند', email: 'hend@mail.com' },
{ name: 'سعد', email: 'sa2d@mail.com' }
];
```

Expand Down Expand Up @@ -474,6 +478,7 @@ export default function Chat({ contact }) {
```

```css
body { direction: rtl; }
.chat, .contact-list {
float: left;
margin-bottom: 20px;
Expand Down

0 comments on commit 4e70aa5

Please sign in to comment.