Skip to content

Commit 4dd106c

Browse files
committed
translate fifth challenge
1 parent 67d3489 commit 4dd106c

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/content/learn/preserving-and-resetting-state.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2002,11 +2002,11 @@ img { width: 150px; height: 150px; }
20022002
20032003
</Solution>
20042004
2005-
#### Fix misplaced state in the list {/*fix-misplaced-state-in-the-list*/}
2005+
#### Listedeki yanlış yerleştirilmiş state'i düzeltin {/*fix-misplaced-state-in-the-list*/}
20062006
2007-
In this list, each `Contact` has state that determines whether "Show email" has been pressed for it. Press "Show email" for Alice, and then tick the "Show in reverse order" checkbox. You will notice that it's _Taylor's_ email that is expanded now, but Alice's--which has moved to the bottom--appears collapsed.
2007+
Bu listede, her `Contact` bileşeni "E-postayı göster" butonunun kendisi için basılıp basılmadığını belirleyen bir state'e sahiptir. Alice için "E-postayı göster" butonuna basın, ve "Ters sıralanmış halde göster" kutucuğunu işaretleyin. Şimdi genişletilmiş halde _Taylor'ın_ e-postasını görüyoruz ama en alt sıraya giden Alice'in e-postasını görmemekteyiz.
20082008
2009-
Fix it so that the expanded state is associated with each contact, regardless of the chosen ordering.
2009+
Genişletilmiş state'in, seçilen sıralamadan bağımsız olarak ilgili kişiyle ilişkendirilecek şekilde düzeltin.
20102010
20112011
<Sandpack>
20122012
@@ -2032,7 +2032,7 @@ export default function ContactList() {
20322032
setReverse(e.target.checked)
20332033
}}
20342034
/>{' '}
2035-
Show in reverse order
2035+
Ters sıralanmış halde göster
20362036
</label>
20372037
<ul>
20382038
{displayedContacts.map((contact, i) =>
@@ -2066,7 +2066,7 @@ export default function Contact({ contact }) {
20662066
<button onClick={() => {
20672067
setExpanded(!expanded);
20682068
}}>
2069-
{expanded ? 'Hide' : 'Show'} email
2069+
{expanded ? 'Hide' : 'Show'} e-posta
20702070
</button>
20712071
</>
20722072
);
@@ -2096,16 +2096,16 @@ button {
20962096
20972097
<Solution>
20982098
2099-
The problem is that this example was using index as a `key`:
2099+
Bu örnekteki problem indeks olarak `key` (`anahtar`) kullanılmasıdır:
21002100
21012101
```js
21022102
{displayedContacts.map((contact, i) =>
21032103
<li key={i}>
21042104
```
21052105
2106-
However, you want the state to be associated with _each particular contact_.
2106+
Ancak, state'in _her bir kişi_ ile ilişkilendirilmesi istiyoruz.
21072107
2108-
Using the contact ID as a `key` instead fixes the issue:
2108+
`key` olarak indek yerine kişinin ID'sini kullanmak sorunu çözer:
21092109
21102110
<Sandpack>
21112111
@@ -2131,7 +2131,7 @@ export default function ContactList() {
21312131
setReverse(e.target.checked)
21322132
}}
21332133
/>{' '}
2134-
Show in reverse order
2134+
Ters sıralanmış halde göster
21352135
</label>
21362136
<ul>
21372137
{displayedContacts.map(contact =>
@@ -2165,7 +2165,7 @@ export default function Contact({ contact }) {
21652165
<button onClick={() => {
21662166
setExpanded(!expanded);
21672167
}}>
2168-
{expanded ? 'Hide' : 'Show'} email
2168+
{expanded ? 'Hide' : 'Show'} e-posta
21692169
</button>
21702170
</>
21712171
);
@@ -2193,7 +2193,7 @@ button {
21932193
21942194
</Sandpack>
21952195
2196-
State is associated with the tree position. A `key` lets you specify a named position instead of relying on order.
2196+
State, ağaç konumu ile ilişkilidir. `key`, sıralamaya bağlı kalmak yerine adlandırılmış bir konum belirlemenizi sağlar.
21972197
21982198
</Solution>
21992199

0 commit comments

Comments
 (0)