Skip to content

Conversation

@dlcks0601
Copy link
Contributor

#️⃣연관된 이슈

#29

📝작업 내용

어드민 페이지 구현, 기능 구현 (관리자 페이지) 6b19b42
코드 리팩토링 eb28036

스크린샷 (선택)

💬리뷰 요구사항(선택)

리뷰어가 특별히 봐주었으면 하는 부분이 있다면 작성해주세요

ex) 메서드 XXX의 이름을 더 잘 짓고 싶은데 혹시 좋은 명칭이 있을까요?

@dlcks0601 dlcks0601 added ✨ Feature 기능 개발 📬 API 서버 API 통신 🔨 Refactor 코드 리팩토링 labels Dec 19, 2024
export const fetchAdminData = async () => {
try {
const response = await httpClient.get<AdminData[]>('/api/admin');
console.log('응답 데이터:', response.data);
Copy link

Choose a reason for hiding this comment

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

사실 console.log는 일반적으로는 지양되어야하는 코드입니다.
되도록이면 네트워크 탭의 정보를 통해 확인하면 더 좋을 내용인 것 같네요 👀

@@ -0,0 +1,7 @@
export interface AdminData {
Copy link

Choose a reason for hiding this comment

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

AdminData라는 이름은 조금 헷갈릴지도 모르겠어요.
적어도 user가 네이밍 속에 들어가야 좀 더 명확해지지 않을까요? 👀

Comment on lines +4 to +10
interface UserCardProps {
nickname: string;
email: string;
createdAt: string;
icon: string | null;
isOpen: boolean;
}
Copy link

Choose a reason for hiding this comment

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

선언된 인터페이스 AdminData과 내용이 거의 유사한데,
이를 활용할 수는 없을까요?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

📬 API 서버 API 통신 ✨ Feature 기능 개발 🔨 Refactor 코드 리팩토링

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants