Skip to content

Commit

Permalink
[Refactoring ⚙️] 팀원 데이터 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
Whoknow77 committed Mar 11, 2024
1 parent 0d824f4 commit 9e0be21
Show file tree
Hide file tree
Showing 8 changed files with 403 additions and 78 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,11 @@ interface ExplanationProps {

const Explanation = ({ projects }: ExplanationProps) => {
return (
<Center margin="0 auto">
<Center
margin="0 auto"
w="100%">
<Tabs
w="100%"
size="lg"
variant="enclosed"
fontFamily="SCDream_Bold">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ interface ExplanationItemProps {
}

const ExplanationItem = ({ content }: ExplanationItemProps) => {
const processedText = content.replace(/\\n/g, "\n")
return (
<Box data-color-mode="light">
<MDEditor.Markdown
source={content}
source={processedText}
style={{ ...ViewStyleParams }}
/>
</Box>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Avatar, Flex, Text } from "@chakra-ui/react"

interface MemberCardProps {
profileImageUrl: string
profileImageUrl: string | null
nickname: string
}

Expand All @@ -15,7 +15,7 @@ const MemberCard = ({ profileImageUrl, nickname }: MemberCardProps) => {
direction="column"
alignItems="center">
<Avatar
src={profileImageUrl}
src={profileImageUrl ? profileImageUrl : undefined}
width="6rem"
height="6rem"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ const MemberList = ({ category, members }: MemberListProps) => {
alignItems="center">
{members.map((member) => (
<MemberCard
profileImageUrl={member.profileImageUrl}
nickname={member.nickname}
profileImageUrl={member.userSummary.profileImageUrl}
nickname={member.userSummary.nickname}
key={member.id}
/>
))}
Expand Down
Loading

0 comments on commit 9e0be21

Please sign in to comment.