Skip to content

Commit

Permalink
[ refactor ] 불필요 컴포넌트 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
myeongheonhong committed Feb 5, 2024
1 parent 57c803d commit 5746b3f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 22 deletions.
19 changes: 0 additions & 19 deletions components/Common/Button/SnsBox.tsx

This file was deleted.

10 changes: 7 additions & 3 deletions components/Common/Modal/ShareContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { useEffect, useState } from 'react';
import useKakaoShare from '@/hooks/common/useKakaoShare';
import { useRecoilValue } from 'recoil';
import { LoginUserInfo } from '@/recoil/auth/loginUserInfo';
import SNSBox from '../Button/SnsBox';
import InputLink from '../Input/InputLink';
import { useGetMainProgressData } from '@/hooks/queries/wishes';

Expand Down Expand Up @@ -65,9 +64,9 @@ export default function ShareContent() {
<Styled.ContentWrapper>
<Styled.SNSContainer>
{SNS_LIST.map((sns) => (
<SNSBox key={sns.name} handleClick={() => handleShareSNS(sns.name)} id={sns.name}>
<Styled.SNSBox key={sns.name} onClick={() => handleShareSNS(sns.name)} id={sns.name}>
<Image src={sns.logo} alt={`${sns.name}`} />
</SNSBox>
</Styled.SNSBox>
))}
</Styled.SNSContainer>

Expand Down Expand Up @@ -98,4 +97,9 @@ const Styled = {
color: ${theme.colors.white};
width: 100%;
`,

SNSBox: styled.div`
margin: 0 0.5rem 0;
cursor: pointer;
`,
};

0 comments on commit 5746b3f

Please sign in to comment.