Skip to content

Commit 0beb786

Browse files
committed
Resolve conflicts
1 parent 9079729 commit 0beb786

File tree

9 files changed

+18
-267
lines changed

9 files changed

+18
-267
lines changed

src/components/DocsFooter.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,15 +78,9 @@ function FooterLink({
7878
className="inline text-tertiary dark:text-tertiary-dark group-focus:text-link dark:group-focus:text-link-dark"
7979
displayDirection={type === 'Previous' ? 'start' : 'end'}
8080
/>
81-
<<<<<<< HEAD
82-
<span>
83-
<span className="block no-underline text-sm tracking-wide text-secondary dark:text-secondary-dark uppercase font-bold group-focus:text-link dark:group-focus:text-link-dark group-focus:text-opacity-100">
84-
{type === 'Previous' ? 'Wstecz' : 'Dalej'}
85-
=======
8681
<div className="flex flex-col overflow-hidden">
8782
<span className="text-sm font-bold tracking-wide no-underline uppercase text-secondary dark:text-secondary-dark group-focus:text-link dark:group-focus:text-link-dark group-focus:text-opacity-100">
88-
{type}
89-
>>>>>>> 35530eea4bb8ba2567c1f57f1ccf730cc89b76de
83+
{type === 'Previous' ? 'Wstecz' : 'Dalej'}
9084
</span>
9185
<span className="text-lg break-words group-hover:underline">
9286
{title}

src/components/Layout/Feedback.tsx

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -61,29 +61,18 @@ function sendGAEvent(isPositive: boolean) {
6161
function SendFeedback({onSubmit}: {onSubmit: () => void}) {
6262
const [isSubmitted, setIsSubmitted] = useState(false);
6363
return (
64-
<<<<<<< HEAD
65-
<div className="max-w-xs w-80 lg:w-auto py-3 shadow-lg rounded-lg m-4 bg-wash dark:bg-gray-95 px-4 flex">
66-
<p className="w-full font-bold text-primary dark:text-primary-dark text-lg me-4">
67-
{isSubmitted ? 'Dziękujemy za opinię!' : 'Czy ta strona była pomocna?'}
68-
</p>
69-
{!isSubmitted && (
70-
<button
71-
aria-label="Tak"
72-
className="bg-secondary-button dark:bg-secondary-button-dark rounded-lg text-primary dark:text-primary-dark px-3 me-2"
73-
=======
7464
<div
7565
className={cn(
7666
'max-w-custom-xs w-80 lg:w-auto py-3 shadow-lg rounded-lg m-4 bg-wash dark:bg-gray-95 px-4 flex',
7767
{exit: isSubmitted}
7868
)}>
7969
<p className="w-full text-lg font-bold text-primary dark:text-primary-dark me-4">
80-
{isSubmitted ? 'Thank you for your feedback!' : 'Is this page useful?'}
70+
{isSubmitted ? 'Dziękujemy za opinię!' : 'Czy ta strona była pomocna?'}
8171
</p>
8272
{!isSubmitted && (
8373
<button
84-
aria-label="Yes"
74+
aria-label="Tak"
8575
className="px-3 rounded-lg bg-secondary-button dark:bg-secondary-button-dark text-primary dark:text-primary-dark me-2"
86-
>>>>>>> 35530eea4bb8ba2567c1f57f1ccf730cc89b76de
8776
onClick={() => {
8877
setIsSubmitted(true);
8978
onSubmit();
@@ -94,13 +83,8 @@ function SendFeedback({onSubmit}: {onSubmit: () => void}) {
9483
)}
9584
{!isSubmitted && (
9685
<button
97-
<<<<<<< HEAD
9886
aria-label="Nie"
99-
className="bg-secondary-button dark:bg-secondary-button-dark rounded-lg text-primary dark:text-primary-dark px-3"
100-
=======
101-
aria-label="No"
10287
className="px-3 rounded-lg bg-secondary-button dark:bg-secondary-button-dark text-primary dark:text-primary-dark"
103-
>>>>>>> 35530eea4bb8ba2567c1f57f1ccf730cc89b76de
10488
onClick={() => {
10589
setIsSubmitted(true);
10690
onSubmit();

src/components/SocialBanner.tsx

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,9 @@ import {useRef, useEffect} from 'react';
77
import cn from 'classnames';
88
import {ExternalLink} from './ExternalLink';
99

10-
<<<<<<< HEAD
11-
const bannerText = 'Wesprzyj Ukrainę 🇺🇦';
12-
const bannerLink = 'https://opensource.fb.com/support-ukraine';
13-
const bannerLinkText = 'Wesprzyj pomoc humanitarną dla Ukrainy.';
14-
=======
15-
const bannerText = 'Join us for React Conf on May 15-16.';
10+
const bannerText = 'Dołącz do nas na React Conf 15-16 maja.';
1611
const bannerLink = 'https://conf.react.dev/';
17-
const bannerLinkText = 'Learn more.';
18-
>>>>>>> 35530eea4bb8ba2567c1f57f1ccf730cc89b76de
12+
const bannerLinkText = 'Dowiedz się więcej.';
1913

2014
export default function SocialBanner() {
2115
const ref = useRef<HTMLDivElement | null>(null);

src/content/learn/conditional-rendering.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -629,11 +629,6 @@ Zwróć uwagę, że należy tu napisać `importance > 0 && ...`, zamiast `import
629629

630630
W tym rozwiązaniu dwa oddzielne warunki zostały użyte w celu wstawienia spacji między nazwą przedmiotu a wartością priorytetu. Alternatywnie, można użyć fragmentu, na początku którego wstawiłoby się spację: `importance > 0 && <> <i>...</i></>` lub można również wstawić spację wewnątrz `<i>`: `importance > 0 && <i> ...</i>`.
631631

632-
<<<<<<< HEAD
633-
=======
634-
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>`.
635-
>>>>>>> 35530eea4bb8ba2567c1f57f1ccf730cc89b76de
636-
637632
</Solution>
638633

639634
#### Zamień szereg warunków `? :` na `if` ze zmiennymi {/*refactor-a-series-of---to-if-and-variables*/}

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

Lines changed: 11 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ React jest biblioteką javascriptową służącą do renderowania interfejsu uż
1010

1111
<YouWillLearn isChapter={true}>
1212

13-
<<<<<<< HEAD
1413
* [Jak napisać swój pierwszy komponent](/learn/your-first-component)
1514
* [Kiedy i jak tworzyć wielokomponentowe pliki](/learn/importing-and-exporting-components)
1615
* [Jak dodać znaczniki do JavaScriptu za pomocą JSX](/learn/writing-markup-with-jsx)
@@ -19,17 +18,7 @@ React jest biblioteką javascriptową służącą do renderowania interfejsu uż
1918
* [Jak wyrenderować komponenty warunkowo](/learn/conditional-rendering)
2019
* [Jak wyrenderować wiele komponentów jednocześnie](/learn/rendering-lists)
2120
* [Jak unikać trudnych w zwalczaniu błędów poprzez tworzenie czystych komponentów](/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-
>>>>>>> 35530eea4bb8ba2567c1f57f1ccf730cc89b76de
21+
* [Dlaczego warto patrzeć na UI jak na drzewo](/learn/understanding-your-ui-as-a-tree)
3322

3423
</YouWillLearn>
3524

@@ -535,42 +524,30 @@ Aby dowiedzieć się jak pisać czyste funkcje o łatwym do przewidzenia wyniku
535524

536525
</LearnMore>
537526

538-
<<<<<<< HEAD
539-
## Co dalej? {/*whats-next*/}
540-
=======
541-
## Your UI as a tree {/*your-ui-as-a-tree*/}
542-
543-
React uses trees to model the relationships between components and modules.
544-
545-
A React render tree is a representation of the parent and child relationship between components.
527+
## Twój UI jako drzewo {/*your-ui-as-a-tree*/}
546528

547-
<Diagram name="generic_render_tree" height={250} width={500} alt="A tree graph with five nodes, with each node representing a component. The root node is located at the top the tree graph and is labelled 'Root Component'. It has two arrows extending down to two nodes labelled 'Component A' and 'Component C'. Each of the arrows is labelled with 'renders'. 'Component A' has a single 'renders' arrow to a node labelled 'Component B'. 'Component C' has a single 'renders' arrow to a node labelled 'Component D'.">
529+
React używa drzew do modelowania relacji pomiędzy komponentami i modułami.
548530

549-
An example React render tree.
531+
Drzewo renderowania w Reakcie to reprezentacja relacji rodzic-dziecko między komponentami.
550532

551-
</Diagram>
533+
<Diagram name="generic_render_tree" height={250} width={500} alt="Graf drzewa z pięcioma węzłami, każdy z nich reprezentuje komponent. Węzeł korzenia znajduje się u góry grafu drzewa i jest oznaczony jako 'Root Component'. Ma on dwie strzałki rozciągające się w dół do dwóch węzłów oznaczonych jako 'Component A' i 'Component C'. Każda z strzałek jest oznaczona jako 'renders'. 'Component A' ma pojedynczą strzałkę 'renders' do węzła oznaczonego jako 'Component B'. 'Component C' ma pojedynczą strzałkę 'renders' do węzła oznaczonego jako 'Component D'.">Przykład drzewa renderowania w Reakcie.</Diagram>
552534

553-
Components near the top of the tree, near the root component, are considered top-level components. Components with no child components are leaf components. This categorization of components is useful for understanding data flow and rendering performance.
535+
Komponenty blisko góry drzewa, w okolicach głównego komponentu (ang. _root component_), uważane są za komponenty najwyższego poziomu (ang. _top-level components_). Komponenty, które nie posiadają komponentów potomnych, są liśćmi (ang. _leaf components_). Takie kategoryzowanie komponentów jest przydatne do zrozumienia przepływu danych i wydajności renderowania.
554536

555-
Modelling the relationship between JavaScript modules is another useful way to understand your app. We refer to it as a module dependency tree.
537+
Modelowanie relacji między modułami javascriptowymi to kolejny przydatny sposób na zrozumienia jak działa aplikacja. Nazywamy to drzewem zależności modułów.
556538

557-
<Diagram name="generic_dependency_tree" height={250} width={500} alt="A tree graph with five nodes. Each node represents a JavaScript module. The top-most node is labelled 'RootModule.js'. It has three arrows extending to the nodes: 'ModuleA.js', 'ModuleB.js', and 'ModuleC.js'. Each arrow is labelled as 'imports'. 'ModuleC.js' node has a single 'imports' arrow that points to a node labelled 'ModuleD.js'.">
539+
<Diagram name="generic_dependency_tree" height={250} width={500} alt="Graf drzewa z pięcioma węzłami. Każdy węzeł reprezentuje moduł JavaScript. Najwyższy węzeł jest oznaczony jako 'RootModule.js'. Ma trzy strzałki rozciągające się do węzłów: 'ModuleA.js', 'ModuleB.js' i 'ModuleC.js'. Każda strzałka jest oznaczona jako 'imports'. Węzeł 'ModuleC.js' ma pojedynczą strzałkę 'imports', która wskazuje na węzeł oznaczony jako 'ModuleD.js'. ">Przykład drzewa zależności modułów.</Diagram>
558540

559-
An example module dependency tree.
560-
561-
</Diagram>
562-
563-
A dependency tree is often used by build tools to bundle all the relevant JavaScript code for the client to download and render. A large bundle size regresses user experience for React apps. Understanding the module dependency tree is helpful to debug such issues.
541+
Drzewo zależności jest często wykorzystywane przez narzędzia do budowania w celu bundlowania całego kodu JavaScript, niezbędnego dla klienta do pobrania i renderowania. Duży rozmiar bundla wpływa negatywnie na doświadczenie użytkownika w aplikacjach reactowych. Zrozumienie drzewa zależności modułów jest pomocne przy debugowania tego typu problemów.
564542

565543
<LearnMore path="/learn/understanding-your-ui-as-a-tree">
566544

567-
Read **[Your UI as a Tree](/learn/understanding-your-ui-as-a-tree)** to learn how to create a render and module dependency trees for a React app and how they're useful mental models for improving user experience and performance.
545+
Przeczytaj rozdział **[Twój UI jako drzewo](/learn/understanding-your-ui-as-a-tree)**, aby dowiedzieć się, jak tworzyć drzewa renderowania i zależności modułów dla aplikacji reactowych oraz jak mogą być one przydatne jako modele mentalne używane do poprawy doświadczenia użytkownika i wydajności aplikacji.
568546

569547
</LearnMore>
570548

571549

572-
## What's next? {/*whats-next*/}
573-
>>>>>>> 35530eea4bb8ba2567c1f57f1ccf730cc89b76de
550+
## Co dalej? {/*whats-next*/}
574551

575552
Zacznij od rozdziału pt. [Twój pierwszy komponent](/learn/your-first-component)!
576553

src/content/learn/importing-and-exporting-components.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -281,13 +281,8 @@ export default function App() {
281281
}
282282
```
283283

284-
<<<<<<< HEAD
285-
```js Gallery.js active
286-
// Przenieś mnie do pliku Profile.js!
287-
=======
288284
```js src/Gallery.js active
289-
// Move me to Profile.js!
290-
>>>>>>> 35530eea4bb8ba2567c1f57f1ccf730cc89b76de
285+
// Przenieś mnie do pliku Profile.js!
291286
export function Profile() {
292287
return (
293288
<img

src/content/learn/passing-props-to-a-component.md

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -104,13 +104,8 @@ To, co wyrenderuje `Avatar`, możemy kontrolować na wiele różnych sposobów,
104104

105105
<Sandpack>
106106

107-
<<<<<<< HEAD
108-
```js App.js
109-
import {getImageUrl} from './utils.js';
110-
=======
111107
```js src/App.js
112108
import { getImageUrl } from './utils.js';
113-
>>>>>>> 35530eea4bb8ba2567c1f57f1ccf730cc89b76de
114109

115110
function Avatar({person, size}) {
116111
return (
@@ -300,13 +295,8 @@ export default function Profile() {
300295
}
301296
```
302297

303-
<<<<<<< HEAD
304-
```js Avatar.js
305-
import {getImageUrl} from './utils.js';
306-
=======
307298
```js src/Avatar.js
308299
import { getImageUrl } from './utils.js';
309-
>>>>>>> 35530eea4bb8ba2567c1f57f1ccf730cc89b76de
310300

311301
export default function Avatar({person, size}) {
312302
return (
@@ -363,16 +353,6 @@ Spróbuj zmienić kolor, wybierając opcję z poniższej listy rozwijanej:
363353

364354
<Sandpack>
365355

366-
<<<<<<< HEAD
367-
```js Clock.js active
368-
export default function Clock({color, time}) {
369-
return <h1 style={{color: color}}>{time}</h1>;
370-
}
371-
```
372-
373-
```js App.js hidden
374-
import {useState, useEffect} from 'react';
375-
=======
376356
```js src/Clock.js active
377357
export default function Clock({ color, time }) {
378358
return (
@@ -385,7 +365,6 @@ export default function Clock({ color, time }) {
385365

386366
```js src/App.js hidden
387367
import { useState, useEffect } from 'react';
388-
>>>>>>> 35530eea4bb8ba2567c1f57f1ccf730cc89b76de
389368
import Clock from './Clock.js';
390369

391370
function useTime() {
@@ -446,13 +425,8 @@ Ten komponent `Gallery` zawiera bardzo podobny kod dla dwóch profili. Wyodrębn
446425

447426
<Sandpack>
448427

449-
<<<<<<< HEAD
450-
```js App.js
451-
import {getImageUrl} from './utils.js';
452-
=======
453428
```js src/App.js
454429
import { getImageUrl } from './utils.js';
455-
>>>>>>> 35530eea4bb8ba2567c1f57f1ccf730cc89b76de
456430

457431
export default function Gallery() {
458432
return (
@@ -561,13 +535,8 @@ Zwróć uwagę, że właściwość `imageSize` ma wartość domyślną. To dlate
561535
562536
<Sandpack>
563537
564-
<<<<<<< HEAD
565-
```js App.js
566-
import {getImageUrl} from './utils.js';
567-
=======
568538
```js src/App.js
569539
import { getImageUrl } from './utils.js';
570-
>>>>>>> 35530eea4bb8ba2567c1f57f1ccf730cc89b76de
571540

572541
function Profile({
573542
imageId,
@@ -672,13 +641,8 @@ Inne rozwiązanie, nieco bardziej podobne do poprzednich przykładów na tej str
672641
673642
<Sandpack>
674643
675-
<<<<<<< HEAD
676-
```js App.js
677-
import {getImageUrl} from './utils.js';
678-
=======
679644
```js src/App.js
680645
import { getImageUrl } from './utils.js';
681-
>>>>>>> 35530eea4bb8ba2567c1f57f1ccf730cc89b76de
682646

683647
function Profile({person, imageSize = 70}) {
684648
const imageSrc = getImageUrl(person);
@@ -788,13 +752,8 @@ Zmień komponent `Avatar` tak, aby ustawiał rozmiar obrazka na podstawie właś
788752
789753
<Sandpack>
790754
791-
<<<<<<< HEAD
792-
```js App.js
793-
import {getImageUrl} from './utils.js';
794-
=======
795755
```js src/App.js
796756
import { getImageUrl } from './utils.js';
797-
>>>>>>> 35530eea4bb8ba2567c1f57f1ccf730cc89b76de
798757

799758
function Avatar({person, size}) {
800759
return (
@@ -842,13 +801,8 @@ Oto możliwe rozwiązanie:
842801
843802
<Sandpack>
844803
845-
<<<<<<< HEAD
846-
```js App.js
847-
import {getImageUrl} from './utils.js';
848-
=======
849804
```js src/App.js
850805
import { getImageUrl } from './utils.js';
851-
>>>>>>> 35530eea4bb8ba2567c1f57f1ccf730cc89b76de
852806

853807
function Avatar({person, size}) {
854808
let thumbnailSize = 's';
@@ -907,13 +861,8 @@ Możesz także pokazać nieco ostrzejszą wersję obrazka dla ekranów z wysokim
907861
908862
<Sandpack>
909863
910-
<<<<<<< HEAD
911-
```js App.js
912-
import {getImageUrl} from './utils.js';
913-
=======
914864
```js src/App.js
915865
import { getImageUrl } from './utils.js';
916-
>>>>>>> 35530eea4bb8ba2567c1f57f1ccf730cc89b76de
917866

918867
const ratio = window.devicePixelRatio;
919868

0 commit comments

Comments
 (0)