File tree Expand file tree Collapse file tree 2 files changed +27
-0
lines changed
src/components/Hero/HubHero Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change
1
+ export const allModes = {
2
+ base : {
3
+ viewport : "base" ,
4
+ } ,
5
+ sm : {
6
+ viewport : "sm" ,
7
+ } ,
8
+ md : {
9
+ viewport : "md" ,
10
+ } ,
11
+ lg : {
12
+ viewport : "lg" ,
13
+ } ,
14
+ xl : {
15
+ viewport : "xl" ,
16
+ } ,
17
+ "2xl" : {
18
+ viewport : "2xl" ,
19
+ } ,
20
+ }
Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ import { useTranslation } from "next-i18next"
3
3
import { Box } from "@chakra-ui/react"
4
4
import { Meta , StoryObj } from "@storybook/react"
5
5
6
+ import { allModes } from "../../../../.storybook/modes"
7
+
6
8
import HubHeroComponent from "./"
7
9
8
10
type HubHeroType = typeof HubHeroComponent
@@ -12,6 +14,11 @@ const meta = {
12
14
component : HubHeroComponent ,
13
15
parameters : {
14
16
layout : "none" ,
17
+ chromatic : {
18
+ modes : {
19
+ ...allModes ,
20
+ } ,
21
+ } ,
15
22
} ,
16
23
decorators : [
17
24
( Story ) => (
You can’t perform that action at this time.
0 commit comments