Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโ€™ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GGFE-70]Style profile currentplay #831

Merged

Conversation

parksangmin1543
Copy link
Contributor

๐Ÿ“Œ ๊ฐœ์š”

  • ํ”„๋กœํ•„ํŽ˜์ด์ง€์— recent record๋””์ž์ธ ๋ณ€๊ฒฝ

๐Ÿ’ป ์ž‘์—…์‚ฌํ•ญ

  • link ํƒœ๊ทธ๋กœ ์ฃผ๋˜ ๋ฐฉ์‹์—์„œ Section์œผ๋กœ ๋ณ€๊ฒฝํ–ˆ์Šต๋‹ˆ๋‹ค.

โœ… ๋ณ€๊ฒฝ๋กœ์ง

Copy link
Contributor

@42sungwook 42sungwook left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ํ™•์ธํ–ˆ์Šต๋‹ˆ๋‹ค ์ž˜๋‚˜์˜ค๋„ค์š”๐Ÿ‘๐Ÿ‘

@42sungwook 42sungwook merged commit 08aa595 into GGFE-00/Feat/api-refactoring Jun 19, 2023
Comment on lines +4 to +20
const meta: Meta<typeof User> = {
title: 'profile/Userprofile',
component: User,
tags: ['autodocs'],
args: {
intraId: String,
},
};

export default meta;
type Story = StoryObj<typeof User>;

export const Default: Story = {
args: {
intraId: 'sangmipa',
},
};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์ด ๋ถ€๋ถ„ ์Šคํ† ๋ฆฌ๋ถ์— ๋ฐ์ดํ„ฐ ์ž˜ ๋‚˜์™”๋‚˜์š”??
args๋Š” ์ปดํฌ๋„ŒํŠธ์˜ props๋กœ ์ „๋‹ฌํ•  ๊ฐ’์„ ์ง€์ •ํ•˜๋Š” ๋ถ€๋ถ„์ธ๋ฐ User ์ปดํฌ๋„ŒํŠธ๋Š” query๋กœ intraId๋ฅผ ๋ฐ›์•„์˜ค๊ธฐ ๋•Œ๋ฌธ์— ์•„๋งˆ๋„ ๋ฐ์ดํ„ฐ๋ฅผ ๋ถˆ๋Ÿฌ์˜ค์ง€ ๋ชปํ–ˆ์„ ๊ฒƒ ๊ฐ™์•„์š”...
query๋ฅผ ๋ฐ›์•„์˜ค๊ณ  ์‹ถ๋‹ค๋ฉด args๊ฐ€ ์•„๋‹ˆ๋ผ parameter๋กœ ๋ฐ›์•„์™€์•ผ ํ•œ๋‹ค๋„ค์š”!
(์ฐธ๊ณ  : https://github.com/storybookjs/storybook/blob/next/code/frameworks/nextjs/README.md#default-router)
์ด ์ปดํฌ๋„ŒํŠธ๋Š” story๊ฐ€ ํ•˜๋‚˜๋‹ˆ๊นŒ meta์— ์ด๋Ÿฐ์‹์œผ๋กœ parameter๋กœ query ๋„˜๊ฒจ์ฃผ๋ฉด ๋ฐ์ดํ„ฐ ์ž˜ ๋‚˜์˜ค๋Š” ๊ฒƒ ๊ฐ™๋„ค์—ฌ

const meta: Meta<typeof User> = {
  // ์ƒ๋žต...
  parameters: {
    nextjs: {
      router: {
        query: {
          intraId: 'sangmipa',
        },
      },
    },
  },
};

@42sungwook 42sungwook deleted the GGFE-70-Style-profile-currentplay branch June 19, 2023 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants