Skip to content

Conversation

@Yun-Jinwoo
Copy link
Collaborator

๐Ÿ“Œ ๋ณ€๊ฒฝ ์‚ฌํ•ญ ๊ฐœ์š”

ํ˜„์žฌ ๊ณต๊ณ  ์ƒ์„ธ ํŽ˜์ด์ง€์˜ ๊ฒฝ๋กœ์— noticeId๋งŒ ํฌํ•จ๋˜์–ด ์žˆ๋Š”๋ฐ, shopId๋„ ํฌํ•จ์‹œ์ผฐ์Šต๋‹ˆ๋‹ค.
post ์ปดํฌ๋„ŒํŠธ๋ฅผ ํด๋ฆญ ์‹œ ํ•ด๋‹น ๊ณต๊ณ  ์ƒ์„ธ ํŽ˜์ด์ง€๋กœ ์ด๋™ํ•˜๋„๋ก onClick์†์„ฑ ์ถ”๊ฐ€ํ–ˆ์Šต๋‹ˆ๋‹ค.

๐Ÿ“ ์ƒ์„ธ ๋‚ด์šฉ

  • ๋‚ด ๊ฐ€๊ฒŒ ๊ณต๊ณ  ์ƒ์„ธ (์‚ฌ์žฅ๋‹˜) | /owner/post/{shopId}/{noticeId}
  • ๊ณต๊ณ  ์ƒ์„ธ | /{shopId}/{noticeId}
  • Post ํด๋ฆญ ์‹œ ํ•ด๋‹น ๊ณต๊ณ  ์ƒ์„ธ ํŽ˜์ด์ง€๋กœ ์ด๋™

๐Ÿ”— ๊ด€๋ จ ์ด์Šˆ

๐Ÿ–ผ๏ธ ์Šคํฌ๋ฆฐ์ƒท(์„ ํƒ์‚ฌํ•ญ)

๐Ÿ’ก ์ฐธ๊ณ  ์‚ฌํ•ญ

๊ณต๊ณ  ์ƒ์„ธ ํŽ˜์ด์ง€๊ฐ€ 2๊ฐœ์ธ๋ฐ, ๋‚ด ๊ฐ€๊ฒŒ์˜ ๊ณต๊ณ ์ผ ๊ฒฝ์šฐ์— ์–ด๋–ป๊ฒŒ ๋‚ด ๊ฐ€๊ฒŒ ๊ณต๊ณ  ์ƒ์„ธ ํŽ˜์ด์ง€๋กœ ์ด๋™์‹œํ‚ฌ ์ง€ ๊ณ ๋ฏผ์„ ํ–ˆ๋Š”๋ฐ, /owner๋กœ ์‹œ์ž‘ํ•˜๋Š” ๊ฒฝ๋กœ๋Š” ๋‚ด ๊ฐ€๊ฒŒ์— ๋Œ€ํ•œ ํŽ˜์ด์ง€๋“ค์ด๋ฏ€๋กœ,
/owner๋กœ ์‹œ์ž‘ํ•˜๋Š” ํŽ˜์ด์ง€์—์„œ post๋ฅผ ํด๋ฆญ ์‹œ ๋‚ด ๊ฐ€๊ฒŒ ๊ณต๊ณ  ์ƒ์„ธ ํŽ˜์ด์ง€๋กœ ์ด๋™ํ•˜๋ฉฐ,
๋‚˜๋จธ์ง€ ๊ฒฝ์šฐ(๊ณต๊ณ  ๋ฆฌ์ŠคํŠธ ํŽ˜์ด์ง€)์—์„œ๋Š” ๊ณต๊ณ  ์ƒ์„ธ ํŽ˜์ด์ง€๋กœ ์ด๋™ํ•˜๋„๋ก ํ–ˆ์Šต๋‹ˆ๋‹ค.

Copy link
Contributor

@Moon-ju-young Moon-ju-young left a comment

Choose a reason for hiding this comment

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

์ˆ˜๊ณ ํ•˜์…จ์Šต๋‹ˆ๋‹ค! ํ˜น์‹œ ๊ฐ€๋Šฅํ•˜๋‹ค๋ฉด StoreForm ๋‚ด๋ถ€์˜ ๊ฒฝ๋กœ ์ด๋™๋„ ์ˆ˜์ •ํ•ด์ฃผ์‹ค ์ˆ˜ ์žˆ์œผ์‹ค๊นŒ์š”?

Comment on lines +86 to +90
const isOwnerPage = location.pathname.startsWith('/owner');

const path = isOwnerPage
? `/owner/post/${shopId}/${noticeId}`
: `/${shopId}/${noticeId}`;
Copy link
Contributor

Choose a reason for hiding this comment

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

๐Ÿ’ฌ ์ด๋ ‡๊ฒŒ ๋œ๋‹ค๋ฉด ํ˜„์žฌ ์‚ฌ์žฅ ํŽ˜์ด์ง€์— ์žˆ๋‹ค๊ฐ€ ๋‹ค๋ฅธ notice ๊ฒฝ๋กœ๋ฅผ ์น˜๊ณ  ๋“ค์–ด๊ฐ€๋ฉด ๋‚จ์˜ ์ง€์› ๋ชฉ๋ก์ด ํฌํ•จ๋œ ๊ณต๊ณ  ์ƒ์„ธ ํŽ˜์ด์ง€๋ฅผ ๋ณผ ์ˆ˜ ์žˆ์ง€ ์•Š์„๊นŒ์š”? ๊ฐ€์žฅ ์ข‹์€ ๋ฐฉ๋ฒ•์€ userId๋ฅผ ๊ฐ€์ง€๊ณ  ๊ถŒํ•œ?์„ ํŒ๋‹จํ•˜๋Š” ๋ฐฉ๋ฒ•์ด๊ฒ ์ง€๋งŒ ์–ด๋ ค์šธ ๊ฑฐ ๊ฐ™์•„์„œ... ๊ทธ๋ƒฅ ์™ธ๋ถ€์—์„œ ์ด๋™ํ•  ๊ฒฝ๋กœ๋ฅผ ์ปจํŠธ๋กค ํ•˜๊ฑฐ๋‚˜ ํ•˜๋Š” ๊ฒŒ ์ข‹์„ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค!

Copy link
Collaborator Author

@Yun-Jinwoo Yun-Jinwoo Jun 21, 2025

Choose a reason for hiding this comment

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

๊ทธ์œผ ์ด๊ฑฐ๋Š” post ์ปดํฌ๋„ŒํŠธ ํด๋ฆญ ์ด๋ฒคํŠธ๋ผ ์ง์ ‘ ์ฃผ์†Œ๋ฅผ ์น˜๊ณ  ๊ฐ€๋Š” ๋™์ž‘์€ ๊ด€๋ จ์ด ์—†๊ณ ,
๋ง์”€ํ•˜์‹  ๋ถ€๋ถ„์€ ํ•ด๋‹น ํŽ˜์ด์ง€ ๋‚ด์—์„œ ์ฒ˜๋ฆฌํ•˜๋Š”๊ฒŒ ๋งž์„ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.

Comment on lines 95 to 98
<div
onClick={handleClick}
className="flex h-261 w-full cursor-pointer flex-col gap-12 rounded-xl border border-gray-20 bg-white p-12 md:h-359 md:gap-20 md:p-16 lg:h-348"
>
Copy link
Contributor

Choose a reason for hiding this comment

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

๐Ÿ’ฌ ํด๋ฆญ event๊ฐ€ ์žˆ๋Š” ๊ฒฝ์šฐ button์ด ๋” ๋‚ซ์ง€ ์•Š์„๊นŒ์š”?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

๋งž์Šต๋‹ˆ๋‹ค ์ˆ˜์ •ํ–ˆ์Šต๋‹ˆ๋‹ค~!

@Yun-Jinwoo Yun-Jinwoo merged commit 516990e into develop Jun 21, 2025
2 checks passed
@Yun-Jinwoo Yun-Jinwoo deleted the fix/132-url branch June 21, 2025 07:07
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.

[fix] ๊ฒฝ๋กœ ์ˆ˜์ • ๋ฐ post ์ปดํฌ๋„ŒํŠธ ์ˆ˜์ •

4 participants