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
Hide 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
{
Container
}
from
'./Container'
...
...
@@ -12,27 +11,21 @@ export const CTA = () => (
maxWidth
=
"48rem"
py
=
{
2
}
>
<
Link
isExternal
href
=
"https://chakra-ui.com"
>
<
ChakraLink
isExternal
href
=
"https://chakra-ui.com"
flexGrow
=
{
1
}
mx
=
{
2
}
>
<
Button
width
=
"100%"
variant
=
"outline"
variantColor
=
"green"
>
chakra
-
ui
<
/Button
>
<
/ChakraLink
>
<
/Link
>
<
Link
<
ChakraLink
isExternal
href
=
"https://chakra-ui.com"
flexGrow
=
{
1
}
mx
=
{
2
}
>
<
Button
width
=
"100%"
variant
=
"outline"
variantColor
=
"green"
>
chakra
-
ui
<
/Button
>
<
/ChakraLink
>
<
ChakraLink
isExternal
href
=
"https://github.com/zeit/next.js/blob/canary/examples/with-chakra-ui"
flexGrow
=
{
3
}
mx
=
{
2
}
>
<
ChakraLink
isExternal
href
=
"https://github.com/zeit/next.js/blob/canary/examples/with-chakra-ui"
flexGrow
=
{
3
}
mx
=
{
2
}
>
<
Button
width
=
"100%"
variant
=
"solid"
variantColor
=
"green"
>
View
Repo
<
/Button
>
<
/ChakraLink
>
<
/Link
>
<
Button
width
=
"100%"
variant
=
"solid"
variantColor
=
"green"
>
View
Repo
<
/Button
>
<
/ChakraLink
>
<
/Container
>
)
examples/with-chakra-ui/src/pages/index.js
View file @
fb729823
import
React
from
'react'
import
Link
from
'next/link'
import
{
withTheme
}
from
'emotion-theming'
import
{
Link
as
ChakraLink
,
...
...
@@ -29,29 +28,20 @@ const Index = () => (
<
List
spacing
=
{
3
}
my
=
{
0
}
>
<
ListItem
>
<
ListIcon
icon
=
"check-circle"
color
=
"green.500"
/>
<
Link
href
=
"https://chakra-ui.com"
>
<
ChakraLink
isExternal
href
=
"https://chakra-ui.com"
flexGrow
=
{
1
}
mr
=
{
2
}
>
Chakra
UI
<
Icon
name
=
"external-link"
mx
=
"2px"
/>
<
/ChakraLink
>
<
/Link
>
<
ChakraLink
isExternal
href
=
"https://chakra-ui.com"
flexGrow
=
{
1
}
mr
=
{
2
}
>
Chakra
UI
<
Icon
name
=
"external-link"
mx
=
"2px"
/>
<
/ChakraLink
>
<
/ListItem
>
<
ListItem
>
<
ListIcon
icon
=
"check-circle"
color
=
"green.500"
/>
<
Link
href
=
"https://nextjs.org"
>
<
ChakraLink
isExternal
href
=
"https://nextjs.org"
flexGrow
=
{
1
}
mr
=
{
2
}
>
Next
.
js
<
Icon
name
=
"external-link"
mx
=
"2px"
/>
<
/ChakraLink
>
<
/Link
>
<
ChakraLink
isExternal
href
=
"https://nextjs.org"
flexGrow
=
{
1
}
mr
=
{
2
}
>
Next
.
js
<
Icon
name
=
"external-link"
mx
=
"2px"
/>
<
/ChakraLink
>
<
/ListItem
>
<
/List
>
<
/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