Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -183,31 +183,29 @@ const ClubInfoEditTab = () => {
<MakeTags value={clubTags} onChange={setClubTags} />
</Styled.TagEditGroup>

{/*<Styled.InfoTitle>동아리 SNS 링크</Styled.InfoTitle>*/}
{/*<p>현재 준비 중인 기능입니다. 조금만 기다려 주세요!</p>*/}
{/*<Styled.SNSInputGroup>*/}
{/* {Object.entries(SNS_CONFIG).map(([rawKey, { label, placeholder }]) => {*/}
{/* const key = rawKey as SNSPlatform;*/}

{/* return (*/}
{/* <Styled.SNSRow key={key}>*/}
{/* <Styled.SNSCheckboxLabel>{label}</Styled.SNSCheckboxLabel>*/}
{/* <InputField*/}
{/* placeholder={placeholder}*/}
{/* value={socialLinks[key]}*/}
{/* onChange={(e) => handleSocialLinkChange(key, e.target.value)}*/}
{/* onClear={() => {*/}
{/* setSocialLinks((prev) => ({ ...prev, [key]: '' }));*/}
{/* setSnsErrors((prev) => ({ ...prev, [key]: '' }));*/}
{/* }}*/}
{/* isError={snsErrors[key] !== ''}*/}
{/* helperText={snsErrors[key]}*/}
{/* disabled={true}*/}
{/* />*/}
{/* </Styled.SNSRow>*/}
{/* );*/}
{/* })}*/}
{/*</Styled.SNSInputGroup>*/}
<Styled.InfoTitle>동아리 SNS 링크</Styled.InfoTitle>
<Styled.SNSInputGroup>
{Object.entries(SNS_CONFIG).map(([rawKey, { label, placeholder }]) => {
const key = rawKey as SNSPlatform;

return (
<Styled.SNSRow key={key}>
<Styled.SNSCheckboxLabel>{label}</Styled.SNSCheckboxLabel>
<InputField
placeholder={placeholder}
value={socialLinks[key]}
onChange={(e) => handleSocialLinkChange(key, e.target.value)}
onClear={() => {
setSocialLinks((prev) => ({ ...prev, [key]: '' }));
setSnsErrors((prev) => ({ ...prev, [key]: '' }));
}}
isError={snsErrors[key] !== ''}
helperText={snsErrors[key]}
/>
</Styled.SNSRow>
);
})}
</Styled.SNSInputGroup>
</>
);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const InfoBoxWrapper = styled.div`

export const InfoBox = styled.div`
width: 573px;
height: 164px; //todo 추후 197로 수정 필요
height: 197px;
border-radius: 18px;
border: 1px solid #dcdcdc;
padding: 30px;
Expand Down
10 changes: 5 additions & 5 deletions frontend/src/pages/ClubDetailPage/components/InfoBox/InfoBox.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as Styled from './InfoBox.styles';
import { ClubDetail } from '@/types/club';
import { INFOTABS_SCROLL_INDEX } from '@/constants/scrollSections';
//import SnsLinkIcons from '@/pages/ClubDetailPage/components/SnsLinkIcons/SnsLinkIcons';
import SnsLinkIcons from '@/pages/ClubDetailPage/components/SnsLinkIcons/SnsLinkIcons';

interface ClubInfoItem {
label: string;
Expand Down Expand Up @@ -38,10 +38,10 @@ const InfoBox = ({ sectionRefs, clubDetail }: InfoBoxProps) => {
descriptions: [
{ label: '회장이름', value: clubDetail.presidentName },
{ label: '전화번호', value: clubDetail.presidentPhoneNumber },
// {
// label: 'SNS',
// render: <SnsLinkIcons apiSocialLinks={clubDetail.socialLinks} />,
// },
{
label: 'SNS',
render: <SnsLinkIcons apiSocialLinks={clubDetail.socialLinks} />,
},
],
refIndex: INFOTABS_SCROLL_INDEX.CLUB_INFO_TAB,
},
Expand Down