Skip to content

feature: 클래스 리스트 페이지 기능 구현 (API MOCK) #59

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

Merged
merged 19 commits into from
Nov 28, 2024

Conversation

KIMSEUNGGYU
Copy link
Contributor

작업

  • 클래스 리스트 페이지 기능 구현
  • API MOCK 버전으로 구현하여 추후에 API 나오면 대체 가능하도록 구현

구현 UI

Screen.Capture.from.Scre.io.webm

@KIMSEUNGGYU KIMSEUNGGYU added the enhancement New feature or request label Nov 28, 2024
@KIMSEUNGGYU KIMSEUNGGYU self-assigned this Nov 28, 2024

const [localSearchValue, setLocalSearchValue] = useState('');

const sortType = (searchParams.get('sortType') as SortType) ?? 'popular';
Copy link
Collaborator

Choose a reason for hiding this comment

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

런타임에서 문자열을 얻는건데 요렇게 as 로 타이핑해도 될까유?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

음.. 타입 좁힐려고 + 탭으로 제어한다고 생각했는데, 유저가 URL 을 직접 변경하면 런타임중에 타입이 유효하지 않은데 유효하다고 인식하겠네요.
그래서 타입 단언 부분 제거했습니다.

CreatiCoding
CreatiCoding previously approved these changes Nov 28, 2024
Copy link
Collaborator

@CreatiCoding CreatiCoding left a comment

Choose a reason for hiding this comment

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

🙇‍♂️

Copy link
Collaborator

@CreatiCoding CreatiCoding left a comment

Choose a reason for hiding this comment

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

👍

@KIMSEUNGGYU KIMSEUNGGYU merged commit a10760c into main Nov 28, 2024
1 check passed
@KIMSEUNGGYU KIMSEUNGGYU deleted the feat/class-list-api-mock branch November 28, 2024 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants