Skip to content

Commit 0163eb0

Browse files
committed
use custom chakra theme breakpoint values
1 parent e498a94 commit 0163eb0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.storybook/main.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
const { propNames } = require("@chakra-ui/react")
2+
23
const { babelConfig } = require("./babel-storybook-config")
4+
35
module.exports = {
46
stories: [
57
{

.storybook/preview.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { action } from "@storybook/addon-actions"
2+
23
import theme from "../src/@chakra-ui/gatsby-plugin/theme"
3-
import { theme as DefaultChakraTheme } from "@chakra-ui/react"
44

5-
const chakraBreakpointArray = Object.entries(DefaultChakraTheme.breakpoints)
5+
const chakraBreakpointArray = Object.entries(theme.breakpoints)
66

77
// Gatsby's Link overrides:
88
// Gatsby Link calls the `enqueue` & `hovering` methods on the global variable ___loader.

0 commit comments

Comments
 (0)