Skip to content

Commit 31b8056

Browse files
committed
[#101] ♻️ apply join with Hash in team card
1 parent 61b3bbb commit 31b8056

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/team/TeamRecruitmentCard.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import { Divider } from '@/components/common/divider'
77
import { Text } from '@/components/common/text'
88
import { Card } from '@/components/shared/card'
99

10+
import { joinWithHash } from '@/utils/convertArrayToHashString'
11+
1012
interface TeamRecruitmentCardProps {
1113
teamRecruitmentItem: TeamRecruitmentListItem
1214
}
@@ -28,9 +30,7 @@ export const TeamRecruitmentCard = ({
2830
const { nickname, imageUrl } = writer
2931
const activeRecruitmentLabel = recruitmentStatusMap[`${teamIsActive}`]
3032
const recruitmentNumLabel = `모집인원 : ${1}/${teamRecruitmentNum}`
31-
const teckStackLabel = (teamTechStack ?? [])
32-
.map(stack => `#${stack}`)
33-
.join('')
33+
const teckStackLabel = joinWithHash(teamTechStack ?? [])
3434

3535
return (
3636
<Card>

0 commit comments

Comments
 (0)