Skip to content

Commit

Permalink
Issue #219465 chore: Feedback changes
Browse files Browse the repository at this point in the history
  • Loading branch information
vaibhavsTekdi committed May 22, 2024
1 parent 85ad649 commit e3a66ca
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 9 deletions.
7 changes: 2 additions & 5 deletions packages/cohort/src/pages/CohortDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,11 +288,7 @@ const CohortDetails = ({ footerLinks, setAlert, appName }) => {
>
<Layout
_header={{
title:
cohortParentDetails?.name +
", " +
" Level " +
cohortDetails?.name,
title: cohortParentDetails?.name + ", " + cohortDetails?.name,
subHeading: moment().format("hh:mm A"),
iconComponent: (
<Pressable>
Expand Down Expand Up @@ -360,6 +356,7 @@ const CohortDetails = ({ footerLinks, setAlert, appName }) => {
attendanceStatusData?.data[0]?.attendance
) {
modifiedTitle += ` - ${attendanceStatusData?.data[0]?.attendance}`;
isDisabled = true;
}
return (
<Widget
Expand Down
18 changes: 14 additions & 4 deletions packages/cohort/src/pages/CohortMemberList.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ export default function CohortMemberList({ footerLinks, appName }) {
_header={{
title: loading
? ""
: cohortParentDetails?.name + ", " + " Level " + cohortDetails?.name,
: cohortParentDetails?.name + ", " + cohortDetails?.name,
subHeading: moment().format("hh:mm A"),
iconComponent: (
<Pressable>
Expand Down Expand Up @@ -387,12 +387,22 @@ export default function CohortMemberList({ footerLinks, appName }) {
>
<HStack justifyContent="space-between">
<VStack>
<H4>{item?.userDetails?.name}</H4>
<H4 mt={5}>{item?.userDetails?.name}</H4>
</VStack>
<HStack space={2}>
{attendanceRecord ? (
<Button colorScheme="primary">
{attendanceRecord.attendance}
<Button colorScheme="primary" mt={5}>
<div
style={{
color:
attendanceRecord.attendance === "Present"
? "green"
: "red",
paddingRight: "26px",
}}
>
{attendanceRecord.attendance}
</div>
</Button>
) : null}

Expand Down

0 comments on commit e3a66ca

Please sign in to comment.