Skip to content

Commit

Permalink
Merge pull request #556 from ParkSohyunee/part3-박소현-week19
Browse files Browse the repository at this point in the history
[박소현] week19
  • Loading branch information
kimjngyun authored Jan 17, 2024
2 parents 931f80e + 5bfbe18 commit dc87338
Show file tree
Hide file tree
Showing 72 changed files with 16,774 additions and 3,394 deletions.
5 changes: 4 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"extends": "next/core-web-vitals",
"extends": [
"next/core-web-vitals",
"plugin:storybook/recommended"
],
"rules": {
"react/display-name": "off"
}
Expand Down
20 changes: 20 additions & 0 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import type { StorybookConfig } from "@storybook/nextjs";

const config: StorybookConfig = {
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
addons: [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/addon-onboarding",
"@storybook/addon-interactions",
"@storybook/addon-themes",
],
framework: {
name: "@storybook/nextjs",
options: {},
},
docs: {
autodocs: "tag",
},
};
export default config;
36 changes: 36 additions & 0 deletions .storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import type { Preview } from "@storybook/react";
// import { withThemeFromJSXProvider } from "@storybook/addon-themes";
// import GlobalStyles from "../styles/GlobalStyle";

const preview: Preview = {
parameters: {
actions: { argTypesRegex: "^on[A-Z].*" },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/i,
},
},
// parameters 내 모든 컴포넌트에 공통적으로 적용할 툴바 조정하기
backgrounds: {
values: [
{
name: "blue",
value: "blue",
},
{
name: "pink",
value: "pink",
},
],
},
},
};

export default preview;

// export const decorators = [
// withThemeFromJSXProvider({
// GlobalStyles,
// }),
// ];
8 changes: 8 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ const nextConfig = {
protocol: "https",
hostname: "codeit-images.codeit.com",
},
{
protocol: "https",
hostname: "cloudflare-ipfs.com",
},
{
protocol: "https",
hostname: "*",
},
],
},
compiler: {
Expand Down
Loading

0 comments on commit dc87338

Please sign in to comment.