Skip to content

Commit

Permalink
팀 들어가지게
Browse files Browse the repository at this point in the history
  • Loading branch information
dutexion committed May 7, 2024
1 parent b342ee9 commit d34666d
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions src/pages/Team/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Icon } from '@iconify/react';
import { theme } from '@/style/theme';
import { TeamContainer } from '@/components/Team/TeamContainer';
import { SearchBar } from '@/components/common/SearchBar';
import { useEffect, useState } from 'react';
import React, { useEffect, useState } from 'react';
import { teamCheck } from '@/utils/apis/team';
import { useNavigate } from 'react-router-dom';

Expand Down Expand Up @@ -58,13 +58,19 @@ export const Team = () => {
{teamArray.length > 0 ? (
teamArray.map((element: any, index: any) => {
return (
<TeamContainer
key={index}
name={element.team_name_ko}
admin={element.administrator_name}
deploy={element.deploy_list}
tag={element.team_type}
/>
<div
onClick={() => {
link(`/team/${element.team_id}/manage`);
}}
>
<TeamContainer
key={index}
name={element.team_name_ko}
admin={element.administrator_name}
deploy={element.deploy_list}
tag={element.team_type}
/>
</div>
);
})
) : (
Expand Down Expand Up @@ -140,4 +146,7 @@ const ContainerWrapper = styled.div`
align-items: center;
justify-content: start;
gap: 14px;
> div {
width: 100%;
}
`;

0 comments on commit d34666d

Please sign in to comment.