Skip to content

Commit 6b29ed0

Browse files
committed
fix: adjust conflicts
1 parent d5a40a7 commit 6b29ed0

15 files changed

+51
-321
lines changed

.env.development

-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +0,0 @@
1-
<<<<<<< HEAD
2-
SANDPACK_BARE_COMPONENTS=true
3-
=======
4-
>>>>>>> 5de85198a3c575d94a395138e3f471cc7172a51c

.env.production

-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1 @@
1-
<<<<<<< HEAD
2-
NEXT_PUBLIC_GA_TRACKING_ID = 'UA-41298772-4'
3-
SANDPACK_BARE_COMPONENTS=true
4-
=======
51
NEXT_PUBLIC_GA_TRACKING_ID = 'G-B1E83PJ3RT'
6-
>>>>>>> 5de85198a3c575d94a395138e3f471cc7172a51c

src/content/learn/choosing-the-state-structure.md

-7
Original file line numberDiff line numberDiff line change
@@ -554,14 +554,7 @@ button { margin-top: 10px; }
554554
555555
</Sandpack>
556556
557-
<<<<<<< HEAD
558-
559-
(Alternativamente, você pode manter o índice selecionado no estado.)
560-
561557
O estado costumava ser duplicado assim:
562-
=======
563-
The state used to be duplicated like this:
564-
>>>>>>> 5de85198a3c575d94a395138e3f471cc7172a51c
565558
566559
* `items = [{ id: 0, title: 'pretzels'}, ...]`
567560
* `selectedItem = {id: 0, title: 'pretzels'}`

src/content/learn/conditional-rendering.md

+1-5
Original file line numberDiff line numberDiff line change
@@ -626,11 +626,7 @@ export default function PackingList() {
626626

627627
Observe que você deve escrever `importance > 0 && ...` ao invés de `importance && ...` para que, se `importance` for `0`, `0` não seja renderizado como resultado!
628628

629-
<<<<<<< HEAD
630-
Nessa solução, duas condições separadas são usadas para inserir um espaço entre o nome e a etiqueta de relevância. Alternativamente, você pode usar um fragmento com um espaço inicial: `importance > 0 && <> <i>...</i></>` ou adicionar um espaço imediatamente dentro do `<i>`: `importance > 0 && <i> ...</i>`.
631-
=======
632-
In this solution, two separate conditions are used to insert a space between the name and the importance label. Alternatively, you could use a Fragment with a leading space: `importance > 0 && <> <i>...</i></>` or add a space immediately inside the `<i>`: `importance > 0 && <i> ...</i>`.
633-
>>>>>>> 5de85198a3c575d94a395138e3f471cc7172a51c
629+
Nesta solução, duas condições separadas são usadas para inserir um espaço entre o nome e o rótulo de importância. Alternativamente, você pode usar um Fragment com um espaço à esquerda: `importance > 0 && <> <i>...</i></>` ou adicionar um espaço imediatamente dentro de `<i>`: `importance > 0 && <i> ...</i>`.
634630

635631
</Solution>
636632

src/content/learn/describing-the-ui.md

+8-23
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,15 @@ React é uma biblioteca JavaScript para renderizar interfaces de usuário (UI).
1010

1111
<YouWillLearn isChapter={true}>
1212

13-
<<<<<<< HEAD
1413
* [Como criar seu primeiro componente React](/learn/your-first-component)
15-
* [Quando e como criar múltiplos componentes](/learn/importing-and-exporting-components)
14+
* [Quando e como criar arquivos multicomponentes](/learn/importing-and-exporting-components)
1615
* [Como escrever tags dentro do JavaScript usando JSX](/learn/writing-markup-with-jsx)
17-
* [Como utilizar chaves no JSX para utilizar funcões JavaScript nos seus componentes](/learn/javascript-in-jsx-with-curly-braces)
18-
* [Como configurar componentes utilizando props(propriedades)](/learn/passing-props-to-a-component)
19-
* [Como renderizar componentes de forma condicional](/learn/conditional-rendering)
20-
* [Como renderizar múltiplos componentes de uma só vez](/learn/rendering-lists)
21-
* [Como evitar comportamentos inesperados mantendo seus componentes puros](/learn/keeping-components-pure)
22-
=======
23-
* [How to write your first React component](/learn/your-first-component)
24-
* [When and how to create multi-component files](/learn/importing-and-exporting-components)
25-
* [How to add markup to JavaScript with JSX](/learn/writing-markup-with-jsx)
26-
* [How to use curly braces with JSX to access JavaScript functionality from your components](/learn/javascript-in-jsx-with-curly-braces)
27-
* [How to configure components with props](/learn/passing-props-to-a-component)
28-
* [How to conditionally render components](/learn/conditional-rendering)
29-
* [How to render multiple components at a time](/learn/rendering-lists)
30-
* [How to avoid confusing bugs by keeping components pure](/learn/keeping-components-pure)
31-
* [Why understanding your UI as trees is useful](/learn/understanding-your-ui-as-a-tree)
32-
>>>>>>> 5de85198a3c575d94a395138e3f471cc7172a51c
16+
* [Como usar chaves com JSX para acessar a funcionalidade JavaScript de seus componentes](/learn/javascript-in-jsx-with-curly-braces)
17+
* [Como configurar componentes com props](/learn/passing-props-to-a-component)
18+
* [Como renderizar componentes condicionalmente](/learn/conditional-rendering)
19+
* [Como renderizar vários componentes por vez](/learn/rendering-lists)
20+
* [Como evitar erros confusos mantendo os componentes puros](/learn/keeping-components-pure)
21+
* [Por que entender sua UI como árvores é útil](/learn/understanding-your-ui-as-a-tree)
3322

3423
</YouWillLearn>
3524

@@ -537,9 +526,6 @@ Leia **[Mantendo Seus Componentes Puros](/learn/keeping-components-pure)** para
537526

538527
</LearnMore>
539528

540-
<<<<<<< HEAD
541-
## O que vem depois? {/*whats-next*/}
542-
=======
543529
## Your UI as a tree {/*your-ui-as-a-tree*/}
544530

545531
React uses trees to model the relationships between components and modules.
@@ -571,8 +557,7 @@ Read **[Your UI as a Tree](/learn/understanding-your-ui-as-a-tree)** to learn ho
571557
</LearnMore>
572558

573559

574-
## What's next? {/*whats-next*/}
575-
>>>>>>> 5de85198a3c575d94a395138e3f471cc7172a51c
560+
## O que vem depois? {/*whats-next*/}
576561

577562
Navegue para a página [Seu Primeiro Componente](/learn/your-first-component) para começar a ler esse capítulo página por página!
578563

src/content/learn/reacting-to-input-with-state.md

-4
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,7 @@ function submitForm(answer) {
8484
// Simula que está acessando a rede.
8585
return new Promise((resolve, reject) => {
8686
setTimeout(() => {
87-
<<<<<<< HEAD
88-
if (answer.toLowerCase() == 'istambul') {
89-
=======
9087
if (answer.toLowerCase() === 'istanbul') {
91-
>>>>>>> 5de85198a3c575d94a395138e3f471cc7172a51c
9288
resolve();
9389
} else {
9490
reject(new Error('Bom palpite, mas resposta errada. Tente novamente!'));

src/content/learn/referencing-values-with-refs.md

-4
Original file line numberDiff line numberDiff line change
@@ -287,11 +287,7 @@ Você também não precisa se preocupar em [evitar a mutação](/learn/updating-
287287

288288
## Refs e o DOM {/*refs-and-the-dom*/}
289289

290-
<<<<<<< HEAD
291-
Você pode apontar um ref para qualquer valor. No entanto, o caso de uso mais comum para um ref é acessar um elemento DOM. Por exemplo, isso é útil se você deseja focar um campo de entrada (input) programaticamente. Quando você passa um ref para um atributo `ref` em JSX, como `<div ref={myRef}>`, o React colocará o elemento DOM correspondente em `myRef.current`. Você pode saber mais sobre isso em [Manipulando o DOM com Refs.](/learn/manipulating-the-dom-with-refs)
292-
=======
293290
You can point a ref to any value. However, the most common use case for a ref is to access a DOM element. For example, this is handy if you want to focus an input programmatically. When you pass a ref to a `ref` attribute in JSX, like `<div ref={myRef}>`, React will put the corresponding DOM element into `myRef.current`. Once the element is removed from the DOM, React will update `myRef.current` to be `null`. You can read more about this in [Manipulating the DOM with Refs.](/learn/manipulating-the-dom-with-refs)
294-
>>>>>>> 5de85198a3c575d94a395138e3f471cc7172a51c
295291

296292
<Recap>
297293

src/content/learn/rendering-lists.md

+3-19
Original file line numberDiff line numberDiff line change
@@ -1084,11 +1084,7 @@ Aqui, `<Recipe {...recipe} key={recipe.id} />` é um atalho de sintaxe dizendo "
10841084

10851085
#### Lista com um separador {/*list-with-a-separator*/}
10861086

1087-
<<<<<<< HEAD
1088-
Esse exemplo renderiza um famoso haiku por Katsushika Hokusai, com cada linha envolta em uma tag `<p>`. Seu trabalho é inserir um separador `<hr />` entre cada parágrafo. Sua estrutura resultante deve se parecer com isso:
1089-
=======
10901087
This example renders a famous haiku by Tachibana Hokushi, with each line wrapped in a `<p>` tag. Your job is to insert an `<hr />` separator between each paragraph. Your resulting structure should look like this:
1091-
>>>>>>> 5de85198a3c575d94a395138e3f471cc7172a51c
10921088

10931089
```js
10941090
<article>
@@ -1147,11 +1143,7 @@ hr {
11471143

11481144
<Hint>
11491145

1150-
<<<<<<< HEAD
1151-
Você precisará converter `map` para um loop manual, ou então usar um fragment.
1152-
=======
1153-
You'll either need to convert `map` to a manual loop, or use a Fragment.
1154-
>>>>>>> 5de85198a3c575d94a395138e3f471cc7172a51c
1146+
Você precisará converter `map` em um loop manual ou usar um Fragment.
11551147

11561148
</Hint>
11571149

@@ -1214,11 +1206,7 @@ hr {
12141206

12151207
Usando o índice original da linha como `key` não funciona mais porque cada separador e parágrafo estão agora no mesmo array. Entretanto, você pode dar a cada uma delas uma key distinta usando um sufixo, por exemplo `key={i + '-text'}`.
12161208

1217-
<<<<<<< HEAD
1218-
Alternativamente, você pode renderizar uma coleção de fragmentos a qual contêm `<hr />` e `<p>...</p>`. Entretanto, o atalho de sintaxe `<>...</>` não suporta a passagem de keys, então você teria que escrever `<Fragment>` explicitamente:
1219-
=======
1220-
Alternatively, you could render a collection of Fragments which contain `<hr />` and `<p>...</p>`. However, the `<>...</>` shorthand syntax doesn't support passing keys, so you'd have to write `<Fragment>` explicitly:
1221-
>>>>>>> 5de85198a3c575d94a395138e3f471cc7172a51c
1209+
Alternativamente, você pode renderizar uma coleção de fragmentos que contém `<hr />` e `<p>...</p>`. No entanto, a sintaxe abreviada `<>...</>` não suporta a passagem de chaves, então você teria que escrever `<Fragment>` explicitamente:
12221210

12231211
<Sandpack>
12241212

@@ -1264,11 +1252,7 @@ hr {
12641252

12651253
</Sandpack>
12661254

1267-
<<<<<<< HEAD
1268-
Lembre-se, fragmentos (comumente escritos como `<> </>`) deixam com que você agrupe nós JSX sem adicionar `<div>`s extras!
1269-
=======
1270-
Remember, Fragments (often written as `<> </>`) let you group JSX nodes without adding extra `<div>`s!
1271-
>>>>>>> 5de85198a3c575d94a395138e3f471cc7172a51c
1255+
Lembre-se, Fragmentos (geralmente escritos como `<> </>`) permitem agrupar nós JSX sem adicionar `<div>`s extras!
12721256

12731257
</Solution>
12741258

src/content/learn/reusing-logic-with-custom-hooks.md

+2-12
Original file line numberDiff line numberDiff line change
@@ -1918,13 +1918,8 @@ export default function Counter() {
19181918
}
19191919
```
19201920
1921-
<<<<<<< HEAD
1922-
```js useCounter.js
1923-
// Escreva seu Hook personalizado neste arquivo!
1924-
=======
19251921
```js src/useCounter.js
1926-
// Write your custom Hook in this file!
1927-
>>>>>>> 5de85198a3c575d94a395138e3f471cc7172a51c
1922+
// Escreva seu Hook personalizado neste arquivo!
19281923
```
19291924
19301925
</Sandpack>
@@ -2110,13 +2105,8 @@ export function useCounter(delay) {
21102105
}
21112106
```
21122107
2113-
<<<<<<< HEAD
2114-
```js useInterval.js
2115-
// Escreva seu Hook aqui!
2116-
=======
21172108
```js src/useInterval.js
2118-
// Write your Hook here!
2119-
>>>>>>> 5de85198a3c575d94a395138e3f471cc7172a51c
2109+
// Escreva seu Hook aqui!
21202110
```
21212111
21222112
</Sandpack>

0 commit comments

Comments
 (0)