Skip to content

Commit 81a5f2e

Browse files
committed
fix: 현재 진행 중인 수정 요청 심사만 보이도록 수정
1 parent d00ab79 commit 81a5f2e

File tree

1 file changed

+8
-6
lines changed
  • apps/pyconkr-participant-portal/src/components/pages

1 file changed

+8
-6
lines changed

apps/pyconkr-participant-portal/src/components/pages/home.tsx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const ProfileImageStyle: React.CSSProperties = {
4949
const ProfileImage = styled(Common.Components.FallbackImage)(ProfileImageStyle);
5050

5151
const ProfileImageFallback: React.FC<{ language: "ko" | "en" }> = ({ language }) => {
52-
const noProfileImageText = language === "ko" ? "프로필 이미지가 없습니다." : "No profile image.";
52+
const noProfileImageText = language === "ko" ? "프로필 이미지가 없어요." : "No profile image.";
5353
const registerProfileImageText = language === "ko" ? "이미지를 등록해주세요." : "Please register your profile image.";
5454

5555
return (
@@ -69,9 +69,11 @@ const InnerLandingPage: React.FC = () => {
6969
const isMobile = useMediaQuery((theme) => theme.breakpoints.down("sm"));
7070
const participantPortalAPIClient = Common.Hooks.BackendParticipantPortalAPI.useParticipantPortalClient();
7171
const { data: profile } = Common.Hooks.BackendParticipantPortalAPI.useSignedInUserQuery(participantPortalAPIClient);
72-
const { data: modificationAudits } = Common.Hooks.BackendParticipantPortalAPI.useModificationAuditsQuery(participantPortalAPIClient);
72+
const { data: audits } = Common.Hooks.BackendParticipantPortalAPI.useModificationAuditsQuery(participantPortalAPIClient);
7373
const { data: sessions } = Common.Hooks.BackendParticipantPortalAPI.useListPresentationsQuery(participantPortalAPIClient);
7474

75+
const ongoingAudits = audits?.filter((audit) => audit.status === "requested") || [];
76+
7577
if (!profile) {
7678
return (
7779
<Page>
@@ -84,14 +86,14 @@ const InnerLandingPage: React.FC = () => {
8486

8587
const greetingStr = language === "ko" ? `안녕하세요, ${profile.nickname}님!` : `Hello, ${profile.nickname}!`;
8688
const myInfoStr = language === "ko" ? "내 정보" : "My Information";
87-
const auditStr = language === "ko" ? "수정 요청" : "Audit Requests";
89+
const auditStr = language === "ko" ? "심사 중인 수정 요청" : "Ongoing Audit Requests";
8890
const sessionsStr = language === "ko" ? "발표 목록" : "Sessions";
8991
// const sponsorsStr = language === "ko" ? "후원사 정보" : "Sponsor informations";
9092
const userNameStr = language === "ko" ? `계정명 : ${profile.username}` : `Username : ${profile.username}`;
9193
const nickNameStr = language === "ko" ? `별칭 : ${profile.nickname}` : `Nickname : ${profile.nickname}`;
9294
const emailStr = language === "ko" ? `이메일 : ${profile.email}` : `Email : ${profile.email}`;
9395
const editProfileStr = language === "ko" ? "프로필 수정" : "Edit Profile";
94-
const auditEmptyStr = language === "ko" ? "수정 요청이 없습니다." : "No audit requests.";
96+
const auditEmptyStr = language === "ko" ? "진행 중인 수정 요청이 없습니다." : "No ongoing audit requests.";
9597

9698
return (
9799
<Page>
@@ -117,8 +119,8 @@ const InnerLandingPage: React.FC = () => {
117119
<FieldsetContainer>
118120
<ProperWidthFieldset legend={auditStr}>
119121
<List>
120-
{modificationAudits.length > 0 ? (
121-
modificationAudits.map((audit) => (
122+
{ongoingAudits.length > 0 ? (
123+
ongoingAudits.map((audit) => (
122124
<ListItem key={audit.id} disablePadding sx={{ cursor: "pointer", border: "1px solid #ccc" }}>
123125
<ListItemButton
124126
children={<ListItemText primary={audit.str_repr} secondary={audit.status} />}

0 commit comments

Comments
 (0)