File tree 3 files changed +21
-11
lines changed
components/Dashboard/Navbar
3 files changed +21
-11
lines changed Original file line number Diff line number Diff line change @@ -76,4 +76,16 @@ export const parameters = {
76
76
date : / D a t e $ / ,
77
77
} ,
78
78
} ,
79
+ viewport : {
80
+ viewports : {
81
+ ipad : {
82
+ name : "iPad Mini" ,
83
+ styles : {
84
+ height : "1024px" ,
85
+ width : "768px" ,
86
+ } ,
87
+ type : "tablet" ,
88
+ } ,
89
+ } ,
90
+ } ,
79
91
} ;
Original file line number Diff line number Diff line change 1
1
import type { Meta , StoryObj } from "@storybook/react" ;
2
- import { chromatic } from "testHelpers/chromatic" ;
2
+ import { chromaticWithTablet } from "testHelpers/chromatic" ;
3
3
import { MockUser , MockUser2 } from "testHelpers/entities" ;
4
4
import { NavbarView } from "./NavbarView" ;
5
5
6
6
const meta : Meta < typeof NavbarView > = {
7
7
title : "components/NavbarView" ,
8
- parameters : { chromatic } ,
8
+ parameters : { chromatic : chromaticWithTablet } ,
9
9
component : NavbarView ,
10
10
args : {
11
11
user : MockUser ,
@@ -25,12 +25,3 @@ export const ForMember: Story = {
25
25
canViewAllUsers : false ,
26
26
} ,
27
27
} ;
28
-
29
- export const SmallViewport : Story = {
30
- parameters : {
31
- viewport : {
32
- defaultViewport : "tablet" ,
33
- } ,
34
- chromatic : { viewports : [ 420 ] } ,
35
- } ,
36
- } ;
Original file line number Diff line number Diff line change @@ -4,3 +4,10 @@ export const chromatic = {
4
4
light : { theme : "light" } ,
5
5
} ,
6
6
} ;
7
+
8
+ export const chromaticWithTablet = {
9
+ modes : {
10
+ "dark desktop" : { theme : "dark" } ,
11
+ "light tablet" : { theme : "light" , viewport : "ipad" } ,
12
+ } ,
13
+ } ;
You can’t perform that action at this time.
0 commit comments