Skip to content

Commit

Permalink
style(stories): remove unused CSS files and update existing CSS style…
Browse files Browse the repository at this point in the history
…s to improve code cleanliness and maintainability
  • Loading branch information
h-campos committed Feb 28, 2024
1 parent 8309b78 commit 6b308cc
Show file tree
Hide file tree
Showing 28 changed files with 20 additions and 909 deletions.
2 changes: 1 addition & 1 deletion .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { StorybookConfig } from "@storybook/nextjs";

const config: StorybookConfig = {
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
stories: ["../src/**/*.mdx", "../src/**/*.story.tsx"],
addons: [
"@storybook/addon-links",
"@storybook/addon-essentials",
Expand Down
22 changes: 19 additions & 3 deletions .storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,31 @@
import type { Preview } from "@storybook/react";
import "../src/app/globals.css";

const preview: Preview = {
parameters: {
actions: { argTypesRegex: "^on[A-Z].*" },

controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/i,
date: /Date$/,
},
},
},
};

backgrounds: {
default: "black",
values: [
{
name: "black",
value: "#0c0c0d",
},
{
name: "white",
value: "#FFFFFF",
}
],
}
}
}

export default preview;
50 changes: 0 additions & 50 deletions src/stories/Button.stories.ts

This file was deleted.

52 changes: 0 additions & 52 deletions src/stories/Button.tsx

This file was deleted.

Loading

0 comments on commit 6b308cc

Please sign in to comment.