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
fb729823
Unverified
Commit
fb729823
authored
Feb 21, 2020
by
Adith Widya Pradipta
Committed by
GitHub
Feb 21, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove next/link (#10625)
parent
40217b75
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
41 deletions
+24
-41
CTA.js
examples/with-chakra-ui/src/components/CTA.js
+13
-20
index.js
examples/with-chakra-ui/src/pages/index.js
+11
-21
No files found.
examples/with-chakra-ui/src/components/CTA.js
View file @
fb729823
import
Link
from
'next/link'
import
{
Link
as
ChakraLink
,
Button
}
from
'@chakra-ui/core'
import
{
Link
as
ChakraLink
,
Button
}
from
'@chakra-ui/core'
import
{
Container
}
from
'./Container'
import
{
Container
}
from
'./Container'
...
@@ -12,17 +11,12 @@ export const CTA = () => (
...
@@ -12,17 +11,12 @@ export const CTA = () => (
maxWidth
=
"48rem"
maxWidth
=
"48rem"
py
=
{
2
}
py
=
{
2
}
>
>
<
Link
isExternal
href
=
"https://chakra-ui.com"
>
<
ChakraLink
isExternal
href
=
"https://chakra-ui.com"
flexGrow
=
{
1
}
mx
=
{
2
}
>
<
ChakraLink
isExternal
href
=
"https://chakra-ui.com"
flexGrow
=
{
1
}
mx
=
{
2
}
>
<
Button
width
=
"100%"
variant
=
"outline"
variantColor
=
"green"
>
<
Button
width
=
"100%"
variant
=
"outline"
variantColor
=
"green"
>
chakra
-
ui
chakra
-
ui
<
/Button
>
<
/Button
>
<
/ChakraLink
>
<
/ChakraLink
>
<
/Link
>
<
Link
isExternal
href
=
"https://github.com/zeit/next.js/blob/canary/examples/with-chakra-ui"
>
<
ChakraLink
<
ChakraLink
isExternal
isExternal
href
=
"https://github.com/zeit/next.js/blob/canary/examples/with-chakra-ui"
href
=
"https://github.com/zeit/next.js/blob/canary/examples/with-chakra-ui"
...
@@ -33,6 +27,5 @@ export const CTA = () => (
...
@@ -33,6 +27,5 @@ export const CTA = () => (
View
Repo
View
Repo
<
/Button
>
<
/Button
>
<
/ChakraLink
>
<
/ChakraLink
>
<
/Link
>
<
/Container
>
<
/Container
>
)
)
examples/with-chakra-ui/src/pages/index.js
View file @
fb729823
import
React
from
'react'
import
React
from
'react'
import
Link
from
'next/link'
import
{
withTheme
}
from
'emotion-theming'
import
{
withTheme
}
from
'emotion-theming'
import
{
import
{
Link
as
ChakraLink
,
Link
as
ChakraLink
,
...
@@ -29,7 +28,6 @@ const Index = () => (
...
@@ -29,7 +28,6 @@ const Index = () => (
<
List
spacing
=
{
3
}
my
=
{
0
}
>
<
List
spacing
=
{
3
}
my
=
{
0
}
>
<
ListItem
>
<
ListItem
>
<
ListIcon
icon
=
"check-circle"
color
=
"green.500"
/>
<
ListIcon
icon
=
"check-circle"
color
=
"green.500"
/>
<
Link
href
=
"https://chakra-ui.com"
>
<
ChakraLink
<
ChakraLink
isExternal
isExternal
href
=
"https://chakra-ui.com"
href
=
"https://chakra-ui.com"
...
@@ -38,20 +36,12 @@ const Index = () => (
...
@@ -38,20 +36,12 @@ const Index = () => (
>
>
Chakra
UI
<
Icon
name
=
"external-link"
mx
=
"2px"
/>
Chakra
UI
<
Icon
name
=
"external-link"
mx
=
"2px"
/>
<
/ChakraLink
>
<
/ChakraLink
>
<
/Link
>
<
/ListItem
>
<
/ListItem
>
<
ListItem
>
<
ListItem
>
<
ListIcon
icon
=
"check-circle"
color
=
"green.500"
/>
<
ListIcon
icon
=
"check-circle"
color
=
"green.500"
/>
<
Link
href
=
"https://nextjs.org"
>
<
ChakraLink
isExternal
href
=
"https://nextjs.org"
flexGrow
=
{
1
}
mr
=
{
2
}
>
<
ChakraLink
isExternal
href
=
"https://nextjs.org"
flexGrow
=
{
1
}
mr
=
{
2
}
>
Next
.
js
<
Icon
name
=
"external-link"
mx
=
"2px"
/>
Next
.
js
<
Icon
name
=
"external-link"
mx
=
"2px"
/>
<
/ChakraLink
>
<
/ChakraLink
>
<
/Link
>
<
/ListItem
>
<
/ListItem
>
<
/List
>
<
/List
>
<
/Main
>
<
/Main
>
...
...
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