Skip to content

Commit e23d601

Browse files
committed
Resolve merge conflicts
1 parent 895b28b commit e23d601

File tree

10 files changed

+10
-54
lines changed

10 files changed

+10
-54
lines changed

src/components/DocsFooter.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,7 @@ function FooterLink({
8787
/>
8888
<div className="flex flex-col overflow-hidden">
8989
<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">
90-
<<<<<<< HEAD
9190
{type === 'Previous' ? 'Попередня' : 'Наступна'}
92-
=======
93-
{type === 'Previous' ? 'Previous' : 'Next'}
94-
>>>>>>> 49c2d26722fb1b5865ce0221a4cadc71b615e4cf
9591
</span>
9692
<span className="text-lg break-words group-hover:underline">
9793
{title}

src/components/MDX/Sandpack/ClearButton.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ export function ClearButton({onClear}: ClearButtonProps) {
2020
<button
2121
className="text-sm text-primary dark:text-primary-dark inline-flex items-center hover:text-link duration-100 ease-in transition mx-1"
2222
onClick={onClear}
23-
title="Clear all edits and reload sandbox"
23+
title="Видалити зміни та перезавантажити пісочницю"
2424
type="button">
2525
<IconClose className="inline mx-1 relative" />
26-
<span className="hidden md:block">Clear</span>
26+
<span className="hidden md:block">Очистити</span>
2727
</button>
2828
);
2929
}

src/components/MDX/Sandpack/NavigationBar.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,10 @@ export function NavigationBar({providedFiles}: {providedFiles: Array<string>}) {
111111
*
112112
* Plus, it should only prompt if there's any file changes
113113
*/
114-
if (sandpack.editorState === 'dirty' && confirm('Clear all your edits?')) {
114+
if (
115+
sandpack.editorState === 'dirty' &&
116+
confirm('Видалити всі ваші зміни?')
117+
) {
115118
sandpack.resetAllFiles();
116119
}
117120
refresh();

src/components/MDX/Sandpack/ReloadButton.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ export function ReloadButton({onReload}: ReloadButtonProps) {
2020
<button
2121
className="text-sm text-primary dark:text-primary-dark inline-flex items-center hover:text-link duration-100 ease-in transition mx-1"
2222
onClick={onReload}
23-
title="Keep your edits and reload sandbox"
23+
title="Зберегти зміни та перезавантажити пісочницю"
2424
type="button">
2525
<IconRestart className="inline mx-1 relative" />
26-
<span className="hidden md:block">Reload</span>
26+
<span className="hidden md:block">Перезавантажити</span>
2727
</button>
2828
);
2929
}

src/components/MDX/Sandpack/ResetButton.tsx

Lines changed: 0 additions & 21 deletions
This file was deleted.

src/content/learn/build-a-react-app-from-scratch.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,11 +122,7 @@ Rsbuild відразу підтримує такі функції React, як ш
122122

123123
### Покращення продуктивності застосунку {/*improving-application-performance*/}
124124

125-
<<<<<<< HEAD
126125
Оскільки вибраний вами інструмент збирання підтримує лише односторінкові застосунки (SPA), вам треба самостійно реалізувати інші [патерни рендерингу](https://www.patterns.dev/vanilla/rendering-patterns), як-от рендеринг із боку сервера (SSR), генерація статичного сайту (SSG) та/або серверні компоненти React (RSC). Хоч спочатку вони рідко потрібні, згодом SSR, SSG або RSC можуть оптимізувати деякі маршрути вашого застосунку.
127-
=======
128-
Since the build tool you select only supports single page apps (SPAs), you'll need to implement other [rendering patterns](https://www.patterns.dev/vanilla/rendering-patterns) like server-side rendering (SSR), static site generation (SSG), and/or React Server Components (RSC). Even if you don't need these features at first, in the future there may be some routes that would benefit SSR, SSG or RSC.
129-
>>>>>>> 49c2d26722fb1b5865ce0221a4cadc71b615e4cf
130126

131127
* **Односторінкові застосунки (SPA)** завантажують одну HTML-сторінку та динамічно оновлюють її, коли користувач взаємодіє із застосунком. SPA є швидкими та чуйними, але часто повільніші під час початкового завантаження. SPA є стандартною архітектурою для більшості інструментів збирання.
132128

src/content/learn/typescript.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,9 @@ npm install --save-dev @types/react @types/react-dom
3737

3838
У вашому `tsconfig.json` потрібно вказати такі параметри компілятора:
3939

40-
<<<<<<< HEAD
4140
1. `dom` має бути додано до параметру [`lib`](https://www.typescriptlang.org/tsconfig/#lib) (Зауважте: якщо параметр `lib` не вказаний, то `dom` вже додано).
4241
2. Параметр [`jsx`](https://www.typescriptlang.org/tsconfig/#jsx) повинен мати одне з допустимих значень. Для більшості застосунків достатньо вказати `preserve`.
4342
Якщо ви публікуєте бібліотеку, зверніться до [документації `jsx`](https://www.typescriptlang.org/tsconfig/#jsx), щоб вибрати правильне значення.
44-
=======
45-
1. `dom` must be included in [`lib`](https://www.typescriptlang.org/tsconfig/#lib) (Note: If no `lib` option is specified, `dom` is included by default).
46-
2. [`jsx`](https://www.typescriptlang.org/tsconfig/#jsx) must be set to one of the valid options. `preserve` should suffice for most applications.
47-
If you're publishing a library, consult the [`jsx` documentation](https://www.typescriptlang.org/tsconfig/#jsx) on what value to choose.
48-
>>>>>>> 49c2d26722fb1b5865ce0221a4cadc71b615e4cf
4943

5044
## TypeScript з компонентами React {/*typescript-with-react-components*/}
5145

src/content/reference/react/forwardRef.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,7 @@ In React 19, `forwardRef` is no longer necessary. Pass `ref` as a prop instead.
1212

1313
<Intro>
1414

15-
<<<<<<< HEAD
1615
`forwardRef` дозволяє вашому компоненту розкрити DOM-вузол батьківському компоненту через [реф.](/learn/manipulating-the-dom-with-refs)
17-
=======
18-
`forwardRef` lets your component expose a DOM node to the parent component with a [ref.](/learn/manipulating-the-dom-with-refs)
19-
>>>>>>> 49c2d26722fb1b5865ce0221a4cadc71b615e4cf
2016

2117
```js
2218
const SomeComponent = forwardRef(render)

src/content/reference/react/index.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,13 @@ The React Compiler is a build-time optimization tool that automatically memoizes
3737
* [Directives](/reference/react-compiler/directives) - Function-level directives to control compilation.
3838
* [Compiling Libraries](/reference/react-compiler/compiling-libraries) - Guide for shipping pre-compiled library code.
3939

40-
<<<<<<< HEAD
41-
## Правила React {/*rules-of-react*/}
42-
=======
4340
## ESLint Plugin React Hooks {/*eslint-plugin-react-hooks*/}
4441

4542
The [ESLint plugin for React Hooks](/reference/eslint-plugin-react-hooks) helps enforce the Rules of React:
4643

4744
* [Lints](/reference/eslint-plugin-react-hooks) - Detailed documentation for each lint with examples.
4845

49-
## Rules of React {/*rules-of-react*/}
50-
>>>>>>> 49c2d26722fb1b5865ce0221a4cadc71b615e4cf
46+
## Правила React {/*rules-of-react*/}
5147

5248
React has idioms — or rules — for how to express patterns in a way that is easy to understand and yields high-quality applications:
5349

src/sidebarReference.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -380,9 +380,6 @@
380380
},
381381
{
382382
"hasSectionHeader": true,
383-
<<<<<<< HEAD
384-
"sectionHeader": "Правила React"
385-
=======
386383
"sectionHeader": "eslint-plugin-react-hooks"
387384
},
388385
{
@@ -478,8 +475,7 @@
478475
},
479476
{
480477
"hasSectionHeader": true,
481-
"sectionHeader": "Rules of React"
482-
>>>>>>> 49c2d26722fb1b5865ce0221a4cadc71b615e4cf
478+
"sectionHeader": "Правила React"
483479
},
484480
{
485481
"title": "Вступ",

0 commit comments

Comments
 (0)