Skip to content

Commit

Permalink
Merge pull request #154 from 80000Coding/feat/profile-storybook
Browse files Browse the repository at this point in the history
✨ profile page storybook 추가
  • Loading branch information
rkskekzzz authored Oct 3, 2023
2 parents 6feda5b + b8da7ec commit 479dedf
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 3 deletions.
7 changes: 6 additions & 1 deletion apps/web/.storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const path = require('path')
const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin')

/** @type { import('@storybook/nextjs').StorybookConfig } */
const config = {
Expand All @@ -18,6 +18,11 @@ const config = {
},
},
],
staticDirs: ['../public'],
webpackFinal: async (config, { configType }) => {
config.resolve.plugins = [new TsconfigPathsPlugin()]
return config
},
framework: {
name: '@storybook/nextjs',
options: {},
Expand Down
3 changes: 2 additions & 1 deletion apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
"storybook-dark-mode": "^3.0.1",
"storybook-tailwind-dark-mode": "^1.0.22",
"tailwindcss": "3.3.2",
"tsconfig": "*"
"tsconfig": "*",
"tsconfig-paths-webpack-plugin": "^4.1.0"
}
}
20 changes: 20 additions & 0 deletions apps/web/src/stories/pages/Profile.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import type { Meta, StoryObj } from '@storybook/react'

import { default as Profile$1 } from '../../app/profile/[id]/page'

const meta = {
title: 'Pages/Profile',
component: Profile$1,
parameters: {
nextjs: {
appDirectory: true,
},
},
} satisfies Meta<typeof Profile$1>

export default meta
type Story = StoryObj<typeof meta>

export const Profile: Story = {
args: {},
}
3 changes: 2 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 479dedf

Please sign in to comment.