File tree Expand file tree Collapse file tree 3 files changed +23
-4
lines changed Expand file tree Collapse file tree 3 files changed +23
-4
lines changed Original file line number Diff line number Diff line change 1
1
import { useTranslation } from "next-i18next"
2
2
import { Meta , StoryObj } from "@storybook/react"
3
3
4
+ import { allModes } from "../../../../.storybook/modes"
5
+ import contentHeroImg from "../../../../public/mainnet.png"
6
+
4
7
import ContentHeroComponent , { ContentHeroProps } from "."
5
8
6
9
type ContentHeroType = typeof ContentHeroComponent
7
10
8
- import contentHeroImg from "../../../../public/mainnet.png"
9
-
10
11
const meta = {
11
12
title : "Organisms / Layouts / Hero" ,
12
13
component : ContentHeroComponent ,
13
14
parameters : {
14
15
layout : "none" ,
16
+ chromatic : {
17
+ modes : {
18
+ ...allModes ,
19
+ } ,
20
+ } ,
15
21
} ,
16
22
argTypes : {
17
23
heroImg : {
Original file line number Diff line number Diff line change 1
1
import * as React from "react"
2
2
import { Meta , StoryObj } from "@storybook/react"
3
3
4
+ import { allModes } from "../../../../.storybook/modes"
5
+ import homeHeroImg from "../../../../public/home/hero.png"
6
+
4
7
import HomeHeroComponent from "."
5
8
6
9
type HomeHeroType = typeof HomeHeroComponent
@@ -10,6 +13,11 @@ const meta = {
10
13
component : HomeHeroComponent ,
11
14
parameters : {
12
15
layout : "none" ,
16
+ chromatic : {
17
+ modes : {
18
+ ...allModes ,
19
+ } ,
20
+ } ,
13
21
} ,
14
22
argTypes : {
15
23
heroImg : {
@@ -22,8 +30,6 @@ const meta = {
22
30
23
31
export default meta
24
32
25
- import homeHeroImg from "../../../../public/home/hero.png"
26
-
27
33
export const HomeHero : StoryObj < typeof meta > = {
28
34
args : {
29
35
heroImg : homeHeroImg ,
Original file line number Diff line number Diff line change 1
1
import { HStack } from "@chakra-ui/react"
2
2
import { Meta , StoryObj } from "@storybook/react"
3
3
4
+ import { allModes } from "../../../../.storybook/modes"
5
+
4
6
import MdxHeroComponent from "./"
5
7
6
8
type MdxHeroType = typeof MdxHeroComponent
@@ -9,6 +11,11 @@ const meta = {
9
11
title : "Organisms / Layouts / Hero" ,
10
12
parameters : {
11
13
layout : "none" ,
14
+ chromatic : {
15
+ modes : {
16
+ ...allModes ,
17
+ } ,
18
+ } ,
12
19
} ,
13
20
decorators : [
14
21
( Story ) => (
You can’t perform that action at this time.
0 commit comments