Skip to content

Commit

Permalink
show uploads selected as tag on MemberNode and FreelancerNode (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
StreetLamb authored Aug 4, 2024
1 parent e84bc5a commit fc71c02
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/ReactFlow/Nodes/FreelancerNode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,15 @@ export function FreelancerNode({ data }: NodeProps<FreelancerNodeData>) {
</Tag>
</GridItem>
<GridItem colSpan={6} maxW={"full"} noOfLines={1}>
{data.member.skills.map((skill, index) => (
{[...data.member.skills, ...data.member.uploads].map((item, index) => (
<Tag
key={index}
size="sm"
fontSize="xx-small"
colorScheme="purple"
mr={0.5}
>
{skill.name}
{item.name}
</Tag>
))}
</GridItem>
Expand Down
24 changes: 13 additions & 11 deletions frontend/src/components/ReactFlow/Nodes/MemberNode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,17 +73,19 @@ export function MemberNode({ data }: NodeProps<MemberNodeData>) {
</GridItem>
{!isLeader && (
<GridItem colSpan={6} maxW={"full"} noOfLines={1}>
{data.member.skills.map((skill, index) => (
<Tag
key={index}
size="sm"
fontSize="xx-small"
colorScheme="purple"
mr={0.5}
>
{skill.name}
</Tag>
))}
{[...data.member.skills, ...data.member.uploads].map(
(item, index) => (
<Tag
key={index}
size="sm"
fontSize="xx-small"
colorScheme="purple"
mr={0.5}
>
{item.name}
</Tag>
),
)}
</GridItem>
)}
<LimitConnectionHandle
Expand Down

0 comments on commit fc71c02

Please sign in to comment.