Skip to content

Commit

Permalink
Merge pull request #123 from Open-Earth-Foundation/ON-274
Browse files Browse the repository at this point in the history
ON-274: Added level cards components for mobile
  • Loading branch information
gaurab-pant authored Apr 7, 2023
2 parents 24ccca1 + 0973761 commit 8dc98bc
Show file tree
Hide file tree
Showing 26 changed files with 1,158 additions and 22 deletions.
3 changes: 2 additions & 1 deletion ui/.storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ module.exports = {
"@storybook/addon-essentials",
"@storybook/addon-interactions",
"@storybook/addon-postcss",
"@storybook/addon-viewport",
"storybook/addon-postcss",
"@storybook/preset-create-react-app",
"storybook-zeplin/register"
"storybook-zeplin/register"
],
"framework": "@storybook/react",
"staticDirs": ['../src/shared/css', '../public']
Expand Down
16 changes: 16 additions & 0 deletions ui/.storybook/preview.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
import {INITIAL_VIEWPORTS} from "@storybook/addon-viewport";

// Custom viewports
const MY_VIEWPORTS = {
FHD: {
name: "FHD - 1080p",
styles: {
width: "1900",
height: "1080"
}
}
}

export const parameters = {
actions: { argTypesRegex: "^on[A-Z].*" },
controls: {
Expand All @@ -6,4 +19,7 @@ export const parameters = {
date: /Date$/,
},
},
viewport: {
viewports: INITIAL_VIEWPORTS
}
}
Loading

0 comments on commit 8dc98bc

Please sign in to comment.