Skip to content

Commit

Permalink
Fix(challenge-completes): 불필요한 데이터 삭제 및 코드 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Dobbymin committed Oct 15, 2024
1 parent 22deb49 commit a4b4174
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/pages/my-challenge-record/components/list-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,10 @@ import styled from '@emotion/styled';
type Props = {
challengeId: number;
challengeTitle: string;
userNickname: string;
profileImageUrl?: string | null;
};

const ListItem = ({ challengeId, challengeTitle, profileImageUrl }: Props) => {
sessionStorage.setItem('activeTab', '0'); // 선택 탭 초기화
const ListItem = ({ challengeId, challengeTitle }: Props) => {
sessionStorage.setItem('activeTab', '0');

const navigate = useNavigate();

Expand Down Expand Up @@ -51,11 +49,7 @@ const ListItem = ({ challengeId, challengeTitle, profileImageUrl }: Props) => {
return (
<ListItemLayout>
<ProfileContainer>
<Image
src={profileImageUrl || ProfileImg}
alt='profile'
width='1.5rem'
/>
<Image src={ProfileImg} alt='profile' width='1.5rem' />
</ProfileContainer>
<ChallengeTitle
onClick={() => handleChallengeClick(challengeId, challengeTitle)}
Expand Down

0 comments on commit a4b4174

Please sign in to comment.