Skip to content

Commit

Permalink
Merge pull request #84 from HGU-WALAB/#79/groupNum
Browse files Browse the repository at this point in the history
Fix: 나의 그룹 페이지에서 스터디 그룹 정보 추가(#84)
  • Loading branch information
ohinhyuk authored Oct 23, 2023
2 parents 35cfde6 + 7f1889e commit e5cc206
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions histudy-front/src/pages/Group/Group.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ const teamMembersConverter = (teamMembers) => {
};

export default function Group({ setReApply }) {
const [teamNum, setTeamNum] = useState();

const [courses, setCourses] = useState([]);
const [friends, setFriends] = useState([]);

Expand Down Expand Up @@ -67,7 +69,7 @@ export default function Group({ setReApply }) {

if (data.length === 0) setHasTeam(false);
else setHasTeam(true);

setTeamNum(data[0].tag);
setConvertedTeamMembers(teamMembersConverter(data));
},
},
Expand All @@ -79,7 +81,7 @@ export default function Group({ setReApply }) {
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
>
<Title text={"스터디 그룹 정보"} />
<Title text={`스터디 그룹 정보 (Group ${teamNum ? teamNum : ""})`} />
{hasTeam ? (
<StyledScrollTableSize>
<CustomTable
Expand Down

0 comments on commit e5cc206

Please sign in to comment.