Skip to content

Commit 514111a

Browse files
committed
Fix merge issues
1 parent e300df9 commit 514111a

12 files changed

+50
-145
lines changed

src/components/Layout/Feedback.tsx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
* Copyright (c) Facebook, Inc. and its affiliates.
33
*/
44

5-
import {useState} from 'react';
65
import {useRouter} from 'next/router';
6+
import {useState} from 'react';
77
import {ga} from '../../utils/analytics';
88

99
export function Feedback({onSubmit = () => {}}: {onSubmit?: () => void}) {
@@ -62,13 +62,8 @@ 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">
67-
{isSubmitted ? 'Kiitos palautteestasi!' : 'Onko tämä sivu hyödyllinen?'}
68-
=======
6965
<p className="w-full font-bold text-primary dark:text-primary-dark text-lg me-4">
70-
{isSubmitted ? 'Thank you for your feedback!' : 'Is this page useful?'}
71-
>>>>>>> 819518cfe32dd2db3b765410247c30feea713c77
66+
{isSubmitted ? 'Kiitos palautteestasi!' : 'Onko tämä sivu hyödyllinen?'}
7267
</p>
7368
{!isSubmitted && (
7469
<button

src/components/Layout/HomeContent.js

Lines changed: 17 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,30 @@
22
* Copyright (c) Facebook, Inc. and its affiliates.
33
*/
44

5+
import cn from 'classnames';
6+
import NextLink from 'next/link';
57
import {
8+
Suspense,
69
createContext,
710
memo,
8-
useState,
911
useContext,
10-
useId,
11-
Suspense,
1212
useEffect,
13+
useId,
1314
useRef,
15+
useState,
1416
useTransition,
1517
} from 'react';
16-
import cn from 'classnames';
17-
import NextLink from 'next/link';
1818

19-
import ButtonLink from '../ButtonLink';
20-
import {IconRestart} from '../Icon/IconRestart';
21-
import BlogCard from 'components/MDX/BlogCard';
19+
import {ExternalLink} from 'components/ExternalLink';
2220
import {IconChevron} from 'components/Icon/IconChevron';
2321
import {IconSearch} from 'components/Icon/IconSearch';
2422
import {Logo} from 'components/Logo';
25-
import Link from 'components/MDX/Link';
23+
import BlogCard from 'components/MDX/BlogCard';
2624
import CodeBlock from 'components/MDX/CodeBlock';
27-
import {ExternalLink} from 'components/ExternalLink';
25+
import Link from 'components/MDX/Link';
2826
import sidebarBlog from '../../sidebarBlog.json';
27+
import ButtonLink from '../ButtonLink';
28+
import {IconRestart} from '../Icon/IconRestart';
2929

3030
function Section({children, background = null}) {
3131
return (
@@ -383,20 +383,12 @@ export function HomeContent() {
383383
</Link>{' '}
384384
ja{' '}
385385
<Link href="https://github.com/expo/expo">Expo</Link>{' '}
386-
<<<<<<< HEAD
387386
antavat sinun rakentaa sovelluksia Reactilla
388-
Androidille, iOS:lle, ja enemmän. Ne näyttävät ja
387+
Androidille, iOS:lle, ja muille. Ne näyttävät ja
389388
tuntuvat aidolta, koska niiden UI:t <i>ovat</i> täysin
390-
natiiveja. Ne eivät ole web view elementtejä,
391-
komponenttisi renderöi oikeita Android ja iOS ruutuja,
392-
jotka alusta tarjoaa.
393-
=======
394-
let you build apps in React for Android, iOS, and
395-
more. They look and feel native because their UIs{' '}
396-
<i>are</i> truly native. It’s not a web view—your
397-
React components render real Android and iOS views
398-
provided by the platform.
399-
>>>>>>> 819518cfe32dd2db3b765410247c30feea713c77
389+
natiiveja. Ne eivät ole web-view elementtejä,
390+
komponenttisi renderöi oikeita alustan tarjoamia
391+
Android ja iOS ruutuja.
400392
</p>
401393
</div>
402394
</div>
@@ -424,13 +416,8 @@ export function HomeContent() {
424416
<Section background="right-card">
425417
<div className="max-w-7xl mx-auto flex flex-col lg:flex-row px-5">
426418
<div className="max-w-3xl lg:max-w-7xl gap-5 flex flex-col lg:flex-row lg:px-5">
427-
<<<<<<< HEAD
428-
<div className="w-full lg:w-6/12 max-w-3xl flex flex-col items-start justify-start lg:pl-5 lg:pr-10">
429-
<Header>Päivitä kun tulevaisuus on valmis</Header>
430-
=======
431419
<div className="w-full lg:w-6/12 max-w-3xl flex flex-col items-start justify-start lg:ps-5 lg:pe-10">
432-
<Header>Upgrade when the future is ready</Header>
433-
>>>>>>> 819518cfe32dd2db3b765410247c30feea713c77
420+
<Header>Päivitä kun tulevaisuus on valmis</Header>
434421
<Para>
435422
React lähestyy muutoksia huolella. Jokainen React commit
436423
testataan bisneskriittisillä pinnoilla, yli miljardin
@@ -515,13 +502,8 @@ export function HomeContent() {
515502
<div className="mt-20 px-5 lg:px-0 mb-6 max-w-4xl text-center text-opacity-80">
516503
<Logo className="text-link dark:text-link-dark w-24 lg:w-28 mb-10 lg:mb-8 mt-12 h-auto mx-auto self-start" />
517504
<Header>
518-
<<<<<<< HEAD
519-
Tervetuloa React <br className="" />
505+
Tervetuloa React <br className="hidden lg:inline" />
520506
yhteisöön
521-
=======
522-
Welcome to the <br className="hidden lg:inline" />
523-
React community
524-
>>>>>>> 819518cfe32dd2db3b765410247c30feea713c77
525507
</Header>
526508
<ButtonLink
527509
href={'/learn'}
@@ -1499,13 +1481,8 @@ function SearchInput({value, onChange}) {
14991481
<input
15001482
type="text"
15011483
id={id}
1502-
<<<<<<< HEAD
1503-
className="flex pl-11 py-4 h-10 w-full bg-secondary-button outline-none betterhover:hover:bg-opacity-80 pointer items-center text-left text-primary rounded-full align-middle text-base"
1504-
placeholder="Haku"
1505-
=======
15061484
className="flex ps-11 py-4 h-10 w-full text-start bg-secondary-button outline-none betterhover:hover:bg-opacity-80 pointer items-center text-primary rounded-full align-middle text-base"
1507-
placeholder="Search"
1508-
>>>>>>> 819518cfe32dd2db3b765410247c30feea713c77
1485+
placeholder="Haku"
15091486
value={value}
15101487
onChange={(e) => onChange(e.target.value)}
15111488
/>

src/components/MDX/Challenges/Challenge.tsx

Lines changed: 6 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
* Copyright (c) Facebook, Inc. and its affiliates.
33
*/
44

5-
import {useState} from 'react';
65
import cn from 'classnames';
76
import {Button} from 'components/Button';
8-
import {ChallengeContents} from './Challenges';
7+
import {useState} from 'react';
8+
import {IconArrowSmall} from '../../Icon/IconArrowSmall';
99
import {IconHint} from '../../Icon/IconHint';
1010
import {IconSolution} from '../../Icon/IconSolution';
11-
import {IconArrowSmall} from '../../Icon/IconArrowSmall';
1211
import {H4} from '../Heading';
12+
import {ChallengeContents} from './Challenges';
1313

1414
interface ChallengeProps {
1515
isRecipes?: boolean;
@@ -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 ? 'Piilota vihje' : 'Näytä vihje'}
68-
=======
6964
<Button className="me-2" onClick={toggleHint} active={showHint}>
7065
<IconHint className="me-1.5" />{' '}
71-
{showHint ? 'Hide hint' : 'Show hint'}
72-
>>>>>>> 819518cfe32dd2db3b765410247c30feea713c77
66+
{showHint ? 'Piilota vihje' : 'Näytä vihje'}
7367
</Button>
7468
<Button
7569
className="me-2"
7670
onClick={toggleSolution}
7771
active={showSolution}>
78-
<<<<<<< HEAD
79-
<IconSolution className="mr-1.5" />{' '}
80-
{showSolution ? 'Piilota ratkaisu' : 'Näytä ratkaisu'}
81-
=======
8272
<IconSolution className="me-1.5" />{' '}
83-
{showSolution ? 'Hide solution' : 'Show solution'}
84-
>>>>>>> 819518cfe32dd2db3b765410247c30feea713c77
73+
{showSolution ? 'Piilota ratkaisu' : 'Näytä ratkaisu'}
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 ? 'Piilota ratkaisu' : 'Näytä ratkaisu'}
96-
=======
9782
<IconSolution className="me-1.5" />{' '}
98-
{showSolution ? 'Hide solution' : 'Show solution'}
99-
>>>>>>> 819518cfe32dd2db3b765410247c30feea713c77
83+
{showSolution ? 'Piilota ratkaisu' : 'Näytä ratkaisu'}
10084
</Button>
10185
)
10286
)}
@@ -110,13 +94,8 @@ export function Challenge({
11094
)}
11195
onClick={handleClickNextChallenge}
11296
active>
113-
<<<<<<< HEAD
11497
Seuraava {isRecipes ? 'esimerkki' : 'haaste'}
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-
>>>>>>> 819518cfe32dd2db3b765410247c30feea713c77
12099
</Button>
121100
)}
122101
</div>

src/components/MDX/ExpandableExample.tsx

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
* Copyright (c) Facebook, Inc. and its affiliates.
33
*/
44

5-
import * as React from 'react';
65
import cn from 'classnames';
6+
import {useRouter} from 'next/router';
7+
import * as React from 'react';
8+
import {useEffect, useRef, useState} from 'react';
9+
import {Button} from '../Button';
710
import {IconChevron} from '../Icon/IconChevron';
8-
import {IconDeepDive} from '../Icon/IconDeepDive';
911
import {IconCodeBlock} from '../Icon/IconCodeBlock';
10-
import {Button} from '../Button';
12+
import {IconDeepDive} from '../Icon/IconDeepDive';
1113
import {H4} from './Heading';
12-
import {useRouter} from 'next/router';
13-
import {useEffect, useRef, useState} from 'react';
1414

1515
interface ExpandableExampleProps {
1616
children: React.ReactNode;
@@ -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-
Syväsukellus
76-
=======
7773
<IconDeepDive className="inline me-2 dark:text-purple-30 text-purple-40" />
78-
Deep Dive
79-
>>>>>>> 819518cfe32dd2db3b765410247c30feea713c77
74+
Syväsukellus
8075
</>
8176
)}
8277
{isExample && (
8378
<>
84-
<<<<<<< HEAD
85-
<IconCodeBlock className="inline mr-2 dark:text-yellow-30 text-yellow-50" />
86-
Esimerkki
87-
=======
8879
<IconCodeBlock className="inline me-2 dark:text-yellow-30 text-yellow-50" />
89-
Example
90-
>>>>>>> 819518cfe32dd2db3b765410247c30feea713c77
80+
Esimerkki
9181
</>
9282
)}
9383
</h5>

src/components/MDX/MDXComponents.tsx

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,34 +2,34 @@
22
* Copyright (c) Facebook, Inc. and its affiliates.
33
*/
44

5-
import {Children, useContext, useMemo} from 'react';
6-
import * as React from 'react';
75
import cn from 'classnames';
6+
import * as React from 'react';
7+
import {Children, useContext, useMemo} from 'react';
88

9+
import ButtonLink from 'components/ButtonLink';
10+
import {IconNavArrow} from '../Icon/IconNavArrow';
11+
import BlogCard from './BlogCard';
12+
import {Challenges, Hint, Solution} from './Challenges';
913
import CodeBlock from './CodeBlock';
1014
import {CodeDiagram} from './CodeDiagram';
1115
import ConsoleBlock from './ConsoleBlock';
16+
import Diagram from './Diagram';
17+
import DiagramGroup from './DiagramGroup';
1218
import ExpandableCallout from './ExpandableCallout';
1319
import ExpandableExample from './ExpandableExample';
1420
import {H1, H2, H3, H4} from './Heading';
1521
import InlineCode from './InlineCode';
1622
import Intro from './Intro';
17-
import BlogCard from './BlogCard';
1823
import Link from './Link';
1924
import {PackageImport} from './PackageImport';
2025
import Recap from './Recap';
2126
import Sandpack from './Sandpack';
22-
import Diagram from './Diagram';
23-
import DiagramGroup from './DiagramGroup';
2427
import SimpleCallout from './SimpleCallout';
28+
import {TeamMember} from './TeamMember';
2529
import TerminalBlock from './TerminalBlock';
26-
import YouWillLearnCard from './YouWillLearnCard';
27-
import {Challenges, Hint, Solution} from './Challenges';
28-
import {IconNavArrow} from '../Icon/IconNavArrow';
29-
import ButtonLink from 'components/ButtonLink';
30-
import {TocContext} from './TocContext';
3130
import type {Toc, TocItem} from './TocContext';
32-
import {TeamMember} from './TeamMember';
31+
import {TocContext} from './TocContext';
32+
import YouWillLearnCard from './YouWillLearnCard';
3333

3434
function CodeStep({children, step}: {children: any; step: number}) {
3535
return (
@@ -126,13 +126,8 @@ function LearnMore({
126126
label="Lue lisää"
127127
href={path}
128128
type="primary">
129-
<<<<<<< HEAD
130129
Lue lisää
131-
<IconNavArrow displayDirection="right" className="inline ml-1" />
132-
=======
133-
Read More
134130
<IconNavArrow displayDirection="end" className="inline ms-1" />
135-
>>>>>>> 819518cfe32dd2db3b765410247c30feea713c77
136131
</ButtonLink>
137132
) : null}
138133
</div>

src/components/MDX/Sandpack/DownloadButton.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
* Copyright (c) Facebook, Inc. and its affiliates.
33
*/
44

5-
import {useSyncExternalStore} from 'react';
65
import {useSandpack} from '@codesandbox/sandpack-react';
6+
import {useSyncExternalStore} from 'react';
77
import {IconDownload} from '../../Icon/IconDownload';
88
export interface DownloadButtonProps {}
99

@@ -103,11 +103,7 @@ ${css}
103103
onClick={downloadHTML}
104104
title="Lataa hiekkalaatikko"
105105
type="button">
106-
<<<<<<< HEAD
107-
<IconDownload className="inline mr-1" /> Lataa
108-
=======
109-
<IconDownload className="inline me-1" /> Download
110-
>>>>>>> 819518cfe32dd2db3b765410247c30feea713c77
106+
<IconDownload className="inline me-1" /> Lataa
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="Avaa CodeSandbox:ssa">
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-
>>>>>>> 819518cfe32dd2db3b765410247c30feea713c77
12+
title="Avaa CodeSandbox:ssa">
1813
<IconNewPage
1914
className="inline ms-1 me-1 relative top-[1px]"
2015
width="1em"

src/components/MDX/Sandpack/ResetButton.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
* Copyright (c) Facebook, Inc. and its affiliates.
33
*/
44

5-
import * as React from 'react';
65
import {IconRestart} from '../../Icon/IconRestart';
76
export interface ResetButtonProps {
87
onReset: () => void;
@@ -15,11 +14,7 @@ export function ResetButton({onReset}: ResetButtonProps) {
1514
onClick={onReset}
1615
title="Palauta hiekkalaatikko"
1716
type="button">
18-
<<<<<<< HEAD
19-
<IconRestart className="inline ml-1 mr-1 relative" /> Palauta
20-
=======
21-
<IconRestart className="inline ms-1 me-1 relative" /> Reset
22-
>>>>>>> 819518cfe32dd2db3b765410247c30feea713c77
17+
<IconRestart className="inline ms-1 me-1 relative" /> Palauta
2318
</button>
2419
);
2520
}

0 commit comments

Comments
 (0)