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-36] seasonlist #798

Merged
merged 5 commits into from
May 30, 2023
Merged

Conversation

parksangmin1543
Copy link
Contributor

@parksangmin1543 parksangmin1543 commented May 26, 2023

πŸ“Œ κ°œμš”

  • seasonlist api λ³€κ²½

πŸ’» μž‘μ—…μ‚¬ν•­

  • μ‹œμ¦Œλ³„ 이름 리슀트 쑰회
    μˆ˜μ •μ „
    /pingpong/seasonlist
seasonmode: 'both'
[{
id: number
name: string
},{…}]

μˆ˜μ •ν›„

/pingpong/seasons
{
  "seasonList": [
    {
      "id": 0,
      "name": "string"
    }
  ]
}

  • μˆ˜μ • μ „μ—λŠ” seasonList[0]에 μ΅œμ‹  μ‹œμ¦Œμ΄ μžˆμ—ˆμœΌλ‚˜ μˆ˜μ •ν›„ λ§ˆμ§€λ§‰μ— μ˜€λŠ” κ²ƒμœΌλ‘œ λ°”λ€Œμ—ˆμŠ΅λ‹ˆλ‹€.
  • seasonModeλ₯Ό 주던 λ°©μ‹μ—μ„œ μ‚­μ œν•˜κ³  기본으둜 rankλ₯Ό μ‚¬μš©

βœ… λ³€κ²½λ‘œμ§

@PHJoon
Copy link
Contributor

PHJoon commented May 30, 2023

변경사항 ν™•μΈν–ˆμŠ΅λ‹ˆλ‹€!

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.

ν™•μΈν–ˆμŠ΅λ‹ˆλ‹€!

// const resetOpenMenuBar = useResetRecoilState(openMenuBarState);
const HeaderState = useContext<HeaderContextState | null>(HeaderContext);

const setModal = useSetRecoilState(modalState);
const menuList = [
{
name: `${seasonMode === 'normal' ? 'VIP' : 'λž­ν‚Ή'}`,
name: `'λž­ν‚Ή'`,
Copy link
Contributor

Choose a reason for hiding this comment

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

μ΄κ±°λŠ” name: 'λž­ν‚Ή', 으둜만 적어도 λ κ±°κ°™μ•„μš”

Copy link
Contributor Author

Choose a reason for hiding this comment

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

λ„€ μˆ˜μ •ν–ˆμŠ΅λ‹ˆλ‹€

Copy link
Member

@yoouyeon yoouyeon left a comment

Choose a reason for hiding this comment

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

변경사항 ν™•μΈν–ˆμŠ΅λ‹ˆλ‹€!!! μˆ˜κ³ ν•˜μ…¨μŠ΅λ‹ˆλ‹€ πŸ‘πŸ‘

name: `${
MenuContext?.seasonMode.seasonMode === 'normal' ? 'VIP' : 'λž­ν‚Ή'
}`,
name: `${MenuContext?.seasonMode === 'normal' ? 'VIP' : 'λž­ν‚Ή'}`,
Copy link
Member

Choose a reason for hiding this comment

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

seasonModeκ°€ μ–Έμ œ normal이 λ˜λŠ”μ§€ κΆκΈˆν•©λ‹ˆλ‹€!

Copy link
Contributor Author

@parksangmin1543 parksangmin1543 May 30, 2023

Choose a reason for hiding this comment

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

ν˜„μž¬ λ°”λ€ŒλŠ” 뢀뢄은 μ•„λ‹ˆμ§€λ§Œ λ©”μΈλž­ν‚Ήλ¦¬μŠ€νŠΈμ™€ 메뉴바같이 normalμΌλ•Œ cssκ°€ λ³€ν•˜λŠ” 뢀뢄이 μžˆλŠ” κ²½μš°λŠ” 크게 μˆ˜μ •ν•˜μ§€ μ•Šμ•˜μŠ΅λ‹ˆλ‹€.

Copy link
Member

Choose a reason for hiding this comment

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

λ‚˜μ€‘μ—λ„ normal인 κ²½μš°κ°€ 없을 것 κ°™μ•„μ„œ λ‚˜μ€‘μ— CSSλž‘ 같이 λΆˆν•„μš”ν•˜κ²Œ normal μ‚¬μš©λ˜λŠ” λΆ€λΆ„ μˆ˜μ •ν•˜κΈ΄ ν•΄μ•Ό ν•  것 κ°™λ„€μš”!! μ•Œκ² μŠ΅λ‹ˆλ‹€ πŸ‘

import { Modal } from 'types/modalTypes';

export interface NewMenuContextState {
seasonMode: SeasonList;
seasonMode: string;
Copy link
Member

Choose a reason for hiding this comment

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

seasonMode의 νƒ€μž…μ„ string으둜 ν•˜λŠ” 것 λ³΄λ‹€λŠ” SeasonMode νƒ€μž…μœΌλ‘œ μ§€μ •ν•˜λŠ”κ²Œ μ’€ 더 의미적으둜 쒋을 것 κ°™μ•„μš”!!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

κ°μ‚¬ν•©λ‹ˆλ‹€! μˆ˜μ •ν•˜κ² μŠ΅λ‹ˆλ‹€.

@42sungwook 42sungwook merged commit 703a722 into GGFE-00/Feat/api-refactoring May 30, 2023
@parksangmin1543 parksangmin1543 deleted the GGFE-36-seasonlist branch June 12, 2023 08:31
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.

4 participants