Skip to content

Commit ff0d95e

Browse files
committed
Resolve conflicts
1 parent 4e338b6 commit ff0d95e

11 files changed

+14
-97
lines changed

src/components/Layout/Feedback.tsx

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -62,23 +62,13 @@ function SendFeedback({onSubmit}: {onSubmit: () => void}) {
6262
const [isSubmitted, setIsSubmitted] = useState(false);
6363
return (
6464
<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">
65-
<<<<<<< HEAD
66-
<p className="w-full font-bold text-primary dark:text-primary-dark text-lg mr-4">
65+
<p className="w-full font-bold text-primary dark:text-primary-dark text-lg me-4">
6766
{isSubmitted ? 'Dziękujemy za opinię!' : 'Czy ta strona była pomocna?'}
6867
</p>
6968
{!isSubmitted && (
7069
<button
7170
aria-label="Tak"
72-
className="bg-secondary-button dark:bg-secondary-button-dark rounded-lg text-primary dark:text-primary-dark px-3 mr-2"
73-
=======
74-
<p className="w-full font-bold text-primary dark:text-primary-dark text-lg me-4">
75-
{isSubmitted ? 'Thank you for your feedback!' : 'Is this page useful?'}
76-
</p>
77-
{!isSubmitted && (
78-
<button
79-
aria-label="Yes"
8071
className="bg-secondary-button dark:bg-secondary-button-dark rounded-lg text-primary dark:text-primary-dark px-3 me-2"
81-
>>>>>>> 842c24c9aefaa60b7ae9b46b002bd1b3cf4d31f3
8272
onClick={() => {
8373
setIsSubmitted(true);
8474
onSubmit();

src/components/MDX/Challenges/Challenge.tsx

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -61,27 +61,16 @@ export function Challenge({
6161
<div className="flex justify-between items-center mt-4">
6262
{currentChallenge.hint ? (
6363
<div>
64-
<<<<<<< HEAD
65-
<Button className="mr-2" onClick={toggleHint} active={showHint}>
66-
<IconHint className="mr-1.5" />{' '}
67-
{showHint ? 'Ukryj wskazówkę' : 'Pokaż wskazówkę'}
68-
=======
6964
<Button className="me-2" onClick={toggleHint} active={showHint}>
7065
<IconHint className="me-1.5" />{' '}
71-
{showHint ? 'Hide hint' : 'Show hint'}
72-
>>>>>>> 842c24c9aefaa60b7ae9b46b002bd1b3cf4d31f3
66+
{showHint ? 'Ukryj wskazówkę' : 'Pokaż wskazówkę'}
7367
</Button>
7468
<Button
7569
className="me-2"
7670
onClick={toggleSolution}
7771
active={showSolution}>
78-
<<<<<<< HEAD
79-
<IconSolution className="mr-1.5" />{' '}
80-
{showSolution ? 'Ukryj rozwiązanie' : 'Pokaż rozwiązanie'}
81-
=======
8272
<IconSolution className="me-1.5" />{' '}
83-
{showSolution ? 'Hide solution' : 'Show solution'}
84-
>>>>>>> 842c24c9aefaa60b7ae9b46b002bd1b3cf4d31f3
73+
{showSolution ? 'Ukryj rozwiązanie' : 'Pokaż rozwiązanie'}
8574
</Button>
8675
</div>
8776
) : (
@@ -90,13 +79,8 @@ export function Challenge({
9079
className="me-2"
9180
onClick={toggleSolution}
9281
active={showSolution}>
93-
<<<<<<< HEAD
94-
<IconSolution className="mr-1.5" />{' '}
95-
{showSolution ? 'Ukryj rozwiązanie' : 'Pokaż rozwiązanie'}
96-
=======
9782
<IconSolution className="me-1.5" />{' '}
98-
{showSolution ? 'Hide solution' : 'Show solution'}
99-
>>>>>>> 842c24c9aefaa60b7ae9b46b002bd1b3cf4d31f3
83+
{showSolution ? 'Ukryj rozwiązanie' : 'Pokaż rozwiązanie'}
10084
</Button>
10185
)
10286
)}
@@ -110,13 +94,8 @@ export function Challenge({
11094
)}
11195
onClick={handleClickNextChallenge}
11296
active>
113-
<<<<<<< HEAD
11497
{isRecipes ? 'Następny przykład' : 'Następne wyzwanie'}
115-
<IconArrowSmall displayDirection="right" className="block ml-1.5" />
116-
=======
117-
Next {isRecipes ? 'Example' : 'Challenge'}
11898
<IconArrowSmall displayDirection="end" className="block ms-1.5" />
119-
>>>>>>> 842c24c9aefaa60b7ae9b46b002bd1b3cf4d31f3
12099
</Button>
121100
)}
122101
</div>

src/components/MDX/ExpandableExample.tsx

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -70,24 +70,14 @@ function ExpandableExample({children, excerpt, type}: ExpandableExampleProps) {
7070
})}>
7171
{isDeepDive && (
7272
<>
73-
<<<<<<< HEAD
74-
<IconDeepDive className="inline mr-2 dark:text-purple-30 text-purple-40" />
75-
Dla dociekliwych
76-
=======
7773
<IconDeepDive className="inline me-2 dark:text-purple-30 text-purple-40" />
78-
Deep Dive
79-
>>>>>>> 842c24c9aefaa60b7ae9b46b002bd1b3cf4d31f3
74+
Dla dociekliwych
8075
</>
8176
)}
8277
{isExample && (
8378
<>
84-
<<<<<<< HEAD
85-
<IconCodeBlock className="inline mr-2 dark:text-yellow-30 text-yellow-50" />
86-
Przykład
87-
=======
8879
<IconCodeBlock className="inline me-2 dark:text-yellow-30 text-yellow-50" />
89-
Example
90-
>>>>>>> 842c24c9aefaa60b7ae9b46b002bd1b3cf4d31f3
80+
Przykład
9181
</>
9282
)}
9383
</h5>

src/components/MDX/MDXComponents.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,13 +126,8 @@ function LearnMore({
126126
label="Czytaj dalej"
127127
href={path}
128128
type="primary">
129-
<<<<<<< HEAD
130129
Czytaj dalej
131-
<IconNavArrow displayDirection="right" className="inline ml-1" />
132-
=======
133-
Read More
134130
<IconNavArrow displayDirection="end" className="inline ms-1" />
135-
>>>>>>> 842c24c9aefaa60b7ae9b46b002bd1b3cf4d31f3
136131
</ButtonLink>
137132
) : null}
138133
</div>

src/components/MDX/Sandpack/DownloadButton.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,7 @@ ${css}
103103
onClick={downloadHTML}
104104
title="Pobierz Sandbox"
105105
type="button">
106-
<<<<<<< HEAD
107-
<IconDownload className="inline mr-1" /> Pobierz
108-
=======
109-
<IconDownload className="inline me-1" /> Download
110-
>>>>>>> 842c24c9aefaa60b7ae9b46b002bd1b3cf4d31f3
106+
<IconDownload className="inline me-1" /> Pobierz
111107
</button>
112108
);
113109
}

src/components/MDX/Sandpack/OpenInCodeSandboxButton.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,8 @@ import {IconNewPage} from '../../Icon/IconNewPage';
88
export const OpenInCodeSandboxButton = () => {
99
return (
1010
<UnstyledOpenInCodeSandboxButton
11-
<<<<<<< HEAD
12-
className="text-sm text-primary dark:text-primary-dark inline-flex items-center hover:text-link duration-100 ease-in transition mx-1 ml-2 md:ml-1"
13-
title="Otwórz w CodeSandbox">
14-
=======
1511
className="text-sm text-primary dark:text-primary-dark inline-flex items-center hover:text-link duration-100 ease-in transition mx-1 ms-2 md:ms-1"
16-
title="Open in CodeSandbox">
17-
>>>>>>> 842c24c9aefaa60b7ae9b46b002bd1b3cf4d31f3
12+
title="Otwórz w CodeSandbox">
1813
<IconNewPage
1914
className="inline mx-1 relative top-[1px]"
2015
width="1em"

src/components/MDX/Sandpack/ResetButton.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,7 @@ export function ResetButton({onReset}: ResetButtonProps) {
1515
onClick={onReset}
1616
title="Resetuj sandbox"
1717
type="button">
18-
<<<<<<< HEAD
19-
<IconRestart className="inline ml-1 mr-1 relative" /> Resetuj
20-
=======
21-
<IconRestart className="inline mx-1 relative" /> Reset
22-
>>>>>>> 842c24c9aefaa60b7ae9b46b002bd1b3cf4d31f3
18+
<IconRestart className="inline mx-1 relative" /> Resetuj
2319
</button>
2420
);
2521
}

src/components/MDX/TerminalBlock.tsx

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,9 @@ interface TerminalBlockProps {
1717
function LevelText({type}: {type: LogLevel}) {
1818
switch (type) {
1919
case 'warning':
20-
<<<<<<< HEAD
21-
return <span className="text-yellow-50 bg-none mr-1">Ostrzeżenie: </span>;
20+
return <span className="text-yellow-50 bg-none me-1">Ostrzeżenie: </span>;
2221
case 'error':
23-
return <span className="text-red-40 mr-1">Błąd: </span>;
24-
=======
25-
return <span className="text-yellow-50 bg-none me-1">Warning: </span>;
26-
case 'error':
27-
return <span className="text-red-40 me-1">Error: </span>;
28-
>>>>>>> 842c24c9aefaa60b7ae9b46b002bd1b3cf4d31f3
22+
return <span className="text-red-40 me-1">Błąd: </span>;
2923
default:
3024
return null;
3125
}
@@ -70,13 +64,8 @@ function TerminalBlock({level = 'info', children}: TerminalBlockProps) {
7064
window.navigator.clipboard.writeText(message ?? '');
7165
setCopied(true);
7266
}}>
73-
<<<<<<< HEAD
74-
<IconCopy className="inline-flex mr-2 self-center" />{' '}
75-
{copied ? 'Skopiowano' : 'Kopiuj'}
76-
=======
7767
<IconCopy className="inline-flex me-2 self-center" />{' '}
78-
{copied ? 'Copied' : 'Copy'}
79-
>>>>>>> 842c24c9aefaa60b7ae9b46b002bd1b3cf4d31f3
68+
{copied ? 'Skopiowano' : 'Kopiuj'}
8069
</button>
8170
</div>
8271
</div>

src/components/MDX/YouWillLearnCard.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,8 @@ function YouWillLearnCard({title, path, children}: YouWillLearnCardProps) {
2828
type="primary"
2929
size="md"
3030
label={title}>
31-
<<<<<<< HEAD
3231
Czytaj więcej
33-
<IconNavArrow displayDirection="right" className="inline ml-1" />
34-
=======
35-
Read More
3632
<IconNavArrow displayDirection="end" className="inline ms-1" />
37-
>>>>>>> 842c24c9aefaa60b7ae9b46b002bd1b3cf4d31f3
3833
</ButtonLink>
3934
</div>
4035
</div>

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,7 @@ img { margin: 0 10px 10px 0; height: 90px; }
5252

5353
</Sandpack>
5454

55-
<<<<<<< HEAD
56-
W powyższym przykładzie wszystkie te komponenty istnieją w **pliku komponentu głównego** o nazwie `App.js`. W [Create React App](https://create-react-app.dev/) aplikacja jest zdefiniowana w pliku `src/App.js`. Jednak przy odpowiedniej konfiguracji komponent główny mógłby znaleźć się w innym pliku. Jeśli używasz frameworka z routingiem opartym na plikach, np. Next.js, dla każdej strony będziesz mieć inny komponent główny.
57-
=======
58-
These currently live in a **root component file,** named `App.js` in this example. Depending on your setup, your root component could be in another file, though. If you use a framework with file-based routing, such as Next.js, your root component will be different for every page.
59-
>>>>>>> 842c24c9aefaa60b7ae9b46b002bd1b3cf4d31f3
55+
W powyższym przykładzie wszystkie te komponenty istnieją w **pliku komponentu głównego** o nazwie `App.js`. W zależności od konfiguracji komponent główny może znajdować się w innym pliku. Jeśli używasz frameworka z routingiem opartym na plikach, np. Next.js, dla każdej strony będziesz mieć inny komponent główny.
6056

6157
## Eksportowanie i importowanie komponentu {/*exporting-and-importing-a-component*/}
6258

src/content/learn/your-first-component.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -211,11 +211,7 @@ Jeśli komponent potomny potrzebuje jakichś danych od rodzica, [przekaż je za
211211

212212
#### Komponenty od góry do dołu {/*components-all-the-way-down*/}
213213

214-
<<<<<<< HEAD
215-
Twoja aplikacja reactowa zaczyna się w komponencie głównym (_ang._ root - "korzeń"). Zwykle jest on tworzony automatycznie przy starcie nowego projektu. Na przykład, jeśli używasz [CodeSandbox](https://codesandbox.io/) lub [Create React App](https://create-react-app.dev/), komponent główny jest zdefiniowany w pliku `src/App.js`. Jeśli używasz frameworka [Next.js](https://nextjs.org/), komponent główny jest zdefiniowany w pliku `pages/index.js`. W poprzednich przykładach eksportowaliśmy własne komponenty główne.
216-
=======
217-
Your React application begins at a "root" component. Usually, it is created automatically when you start a new project. For example, if you use [CodeSandbox](https://codesandbox.io/) or if you use the framework [Next.js](https://nextjs.org/), the root component is defined in `pages/index.js`. In these examples, you've been exporting root components.
218-
>>>>>>> 842c24c9aefaa60b7ae9b46b002bd1b3cf4d31f3
214+
Twoja aplikacja reactowa zaczyna się w komponencie głównym (_ang._ root - "korzeń"). Zwykle jest on tworzony automatycznie przy starcie nowego projektu. Na przykład, jeśli używasz [CodeSandbox](https://codesandbox.io/) lub frameworka [Next.js](https://nextjs.org/), komponent główny jest zdefiniowany w pliku `pages/index.js`. W poprzednich przykładach eksportowaliśmy własne komponenty główne.
219215

220216
Większość aplikacji reactowych używa komponentów "od góry do dołu". Oznacza to, że nie tylko fragmenty wielokrotnego użytku, jak przyciski, stają się komponentami, lecz także większe kawałki interfejsu, jak paski boczne, listy czy nawet całe strony! Komponenty doskonale sprawdzają się w porządkowaniu kodu UI, nawet jeśli niektórych z nich używamy tylko jeden raz.
221217

0 commit comments

Comments
 (0)