Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
6e89d49f
Commit
6e89d49f
authored
May 03, 2017
by
jascha ehrenreich
Committed by
Arunoda Susiripala
May 03, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix typo (#1856)
parent
87773b98
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
greeting.js
examples/with-pretty-url-routing/pages/greeting.js
+2
-2
No files found.
examples/with-pretty-url-routing/pages/greeting.js
View file @
6e89d49f
...
@@ -8,7 +8,7 @@ export default class GreetingPage extends React.Component {
...
@@ -8,7 +8,7 @@ export default class GreetingPage extends React.Component {
return
{
lang
,
name
}
return
{
lang
,
name
}
}
}
renderSwitchLangageLink
()
{
renderSwitchLang
u
ageLink
()
{
const
{
lang
,
name
}
=
this
.
props
const
{
lang
,
name
}
=
this
.
props
const
switchLang
=
lang
===
'fr'
?
'en'
:
'fr'
const
switchLang
=
lang
===
'fr'
?
'en'
:
'fr'
return
(
return
(
...
@@ -23,7 +23,7 @@ export default class GreetingPage extends React.Component {
...
@@ -23,7 +23,7 @@ export default class GreetingPage extends React.Component {
return
(
return
(
<
div
>
<
div
>
<
h1
>
{
lang
===
'fr'
?
'Bonjour'
:
'Hello'
}
{
name
}
<
/h1
>
<
h1
>
{
lang
===
'fr'
?
'Bonjour'
:
'Hello'
}
{
name
}
<
/h1
>
<
div
>
{
this
.
renderSwitchLangageLink
()}
<
/div
>
<
div
>
{
this
.
renderSwitchLang
u
ageLink
()}
<
/div
>
<
/div
>
<
/div
>
)
)
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment