Skip to content

Commit

Permalink
update chain id, and fantom icon
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptoinhero committed Jan 6, 2022
1 parent 8625e85 commit 014bb23
Show file tree
Hide file tree
Showing 16 changed files with 899 additions and 829 deletions.
14 changes: 14 additions & 0 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module.exports = {
stories: ["../src/**/*.stories.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"],
addons: [
{
name: "@storybook/addon-essentials",
options: {
backgrounds: false,
},
},
"@storybook/addon-links",
"@storybook/addon-a11y",
"themeprovider-storybook/register",
],
};
1 change: 1 addition & 0 deletions .storybook/preview-head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<link href="https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;600&display=swap" rel="stylesheet">
33 changes: 33 additions & 0 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import React from "react";
import { withThemesProvider } from "themeprovider-storybook";
import light from "../src/theme/light";
import dark from "../src/theme/dark";
import ResetCSS from "../src/ResetCSS";
import { ModalProvider } from "../src/widgets/Modal";

const globalDecorator = (StoryFn) => (
<ModalProvider>
<ResetCSS />
<StoryFn />
</ModalProvider>
);

export const parameters = {
actions: { argTypesRegex: "^on[A-Z].*" },
layout: "fullscreen",
};

const themes = [
{
name: "Light",
backgroundColor: light.colors.background,
...light,
},
{
name: "Dark",
backgroundColor: dark.colors.background,
...dark,
},
];

export const decorators = [globalDecorator, withThemesProvider(themes)];
Loading

0 comments on commit 014bb23

Please sign in to comment.