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
50a416a5
Unverified
Commit
50a416a5
authored
Nov 09, 2020
by
Jesse Jafa
Committed by
GitHub
Nov 09, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes with-chakra-ui example error (#18954)
Resolves
https://github.com/vercel/next.js/issues/18941
parent
38a24a9b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
CTA.js
examples/with-chakra-ui/src/components/CTA.js
+2
-2
_app.js
examples/with-chakra-ui/src/pages/_app.js
+5
-1
No files found.
examples/with-chakra-ui/src/components/CTA.js
View file @
50a416a5
...
@@ -12,7 +12,7 @@ export const CTA = () => (
...
@@ -12,7 +12,7 @@ export const CTA = () => (
py
=
{
2
}
py
=
{
2
}
>
>
<
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"
variant
C
olor
=
"green"
>
<
Button
width
=
"100%"
variant
=
"outline"
variant
c
olor
=
"green"
>
chakra
-
ui
chakra
-
ui
<
/Button
>
<
/Button
>
<
/ChakraLink
>
<
/ChakraLink
>
...
@@ -23,7 +23,7 @@ export const CTA = () => (
...
@@ -23,7 +23,7 @@ export const CTA = () => (
flexGrow
=
{
3
}
flexGrow
=
{
3
}
mx
=
{
2
}
mx
=
{
2
}
>
>
<
Button
width
=
"100%"
variant
=
"solid"
variant
C
olor
=
"green"
>
<
Button
width
=
"100%"
variant
=
"solid"
variant
c
olor
=
"green"
>
View
Repo
View
Repo
<
/Button
>
<
/Button
>
<
/ChakraLink
>
<
/ChakraLink
>
...
...
examples/with-chakra-ui/src/pages/_app.js
View file @
50a416a5
...
@@ -5,7 +5,11 @@ import theme from '../theme'
...
@@ -5,7 +5,11 @@ import theme from '../theme'
function
MyApp
({
Component
,
pageProps
})
{
function
MyApp
({
Component
,
pageProps
})
{
return
(
return
(
<
ThemeProvider
theme
=
{
theme
}
>
<
ThemeProvider
theme
=
{
theme
}
>
<
ColorModeProvider
>
<
ColorModeProvider
options
=
{{
useSystsemColorMode
:
true
,
}}
>
<
CSSReset
/>
<
CSSReset
/>
<
Component
{...
pageProps
}
/
>
<
Component
{...
pageProps
}
/
>
<
/ColorModeProvider
>
<
/ColorModeProvider
>
...
...
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