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
1 change: 1 addition & 0 deletions frontend/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ module.exports = {
testEnvironment: 'jsdom',
transform: {
'^.+\\.tsx?$': ['ts-jest', {}],
'\\.(svg|png|jpg|jpeg|gif)$': 'jest-transform-stub',
},
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/$1',
Expand Down
8 changes: 8 additions & 0 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"jest-fetch-mock": "^3.0.3",
"jest-transform-stub": "^2.0.0",
"mini-css-extract-plugin": "^2.9.2",
"path": "^0.12.7",
"prettier": "^3.4.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const InfoTitle = styled.h2`
font-size: 1.5rem;
font-weight: bold;
letter-spacing: 0;
margin-bottom: 46px;
margin-bottom: 30px;
`;

export const InfoGroup = styled.div`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,29 +183,31 @@ const ClubInfoEditTab = () => {
<MakeTags value={clubTags} onChange={setClubTags} />
</Styled.TagEditGroup>

<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>
{/*<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>*/}
</>
);
};
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: 197px;
height: 164px; //todo μΆ”ν›„ 197둜 μˆ˜μ • ν•„μš”
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
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
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 @@ -39,10 +39,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