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

[상점] 생협 운영 시간 추가 #536

Merged
merged 5 commits into from
Oct 7, 2024
Merged

Conversation

D0Dam
Copy link
Contributor

@D0Dam D0Dam commented Oct 7, 2024

What is this PR? 🔍

Changes 📝

  • 생협 운영 시간이 추가되었습니다.
  • 데스크탑, 모바일뷰, 웹뷰를 지원합니다.

ScreenShot 📷

image image

Precaution

  • 웹뷰 확인을 위해 같은 PR로 여러번 머지될 수 있습니다.

✔️ Please check if the PR fulfills these requirements

  • It's submitted to the correct branch, not the develop branch unconditionally?
  • If on a hotfix branch, ensure it targets main?
  • There are no warning message when you run yarn lint

@D0Dam D0Dam added the ✨ Feature 기능 개발 label Oct 7, 2024
@D0Dam D0Dam self-assigned this Oct 7, 2024
Comment on lines +125 to +134
{filteredCampusInfo.slice(0, 1).map(({ id, name, opens }) => (
<div className={styles['info-block']} key={id}>
<div className={styles['icon-wrapper']}>
{SHOP_ICON[name as keyof typeof SHOP_ICON]}
</div>
<div className={styles['info-description-container']}>
<div className={styles['info-title']}>{name}</div>
{opens.map(({ day_of_week, open_time, close_time }) => (
<div className={styles['info-description']} key={`${id}-${day_of_week}`}>{`${day_of_week}: ${getFormattedShopTime(open_time, close_time)}`}</div>
))}
Copy link
Contributor

Choose a reason for hiding this comment

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

아래 부분까지 3번 반복되는 로직같은데 별도의 컴포넌트로 분리해서 재사용해도 좋을 것 같단 생각이 들어요

Copy link
Contributor Author

Choose a reason for hiding this comment

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

고민을 안해본건 아니였단 말이죠..
여기에서 밖에 안쓰는 로직이어서 분리를 해서 일부러 depth를 줄 필요가 있을까 싶었습니다!
한 번 분리해보고서 어떻게 읽히는지 확인해볼게요!

@D0Dam D0Dam merged commit a4432c2 into develop Oct 7, 2024
3 checks passed
@github-actions github-actions bot deleted the feat/#522/campus-info-page branch October 7, 2024 01:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ Feature 기능 개발
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

생협 운영 시간 추가
3 participants