-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin' into knguyen2/ent-9525
- Loading branch information
Showing
8 changed files
with
90 additions
and
16 deletions.
There are no files selected for viewing
40 changes: 33 additions & 7 deletions
40
src/components/PeopleManagement/EnrollmentsTableColumnHeader.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,40 @@ | ||
import React from 'react'; | ||
import { | ||
OverlayTrigger, | ||
Tooltip, | ||
Stack, | ||
Icon, | ||
} from '@openedx/paragon'; | ||
import { InfoOutline } from '@openedx/paragon/icons'; | ||
import { FormattedMessage } from '@edx/frontend-platform/i18n'; | ||
|
||
const EnrollmentsTableColumnHeader = () => ( | ||
<span data-testid="members-table-enrollments-column-header"> | ||
<FormattedMessage | ||
id="people.management.groups.detail.page.learnersTable.enrollmentsColumn" | ||
defaultMessage="Enrollments" | ||
description="Enrollments column header in the Members table" | ||
/> | ||
</span> | ||
<Stack gap={1} direction="horizontal"> | ||
<span data-testid="members-table-enrollments-column-header"> | ||
<FormattedMessage | ||
id="people.management.groups.detail.page.learnersTable.enrollmentsColumn" | ||
defaultMessage="Enrollments" | ||
description="Enrollments column header in the Members table" | ||
/> | ||
</span> | ||
<OverlayTrigger | ||
key="enrollments-column-tooltip" | ||
placement="top" | ||
overlay={( | ||
<Tooltip id="enrollments-column-tooltip"> | ||
<div> | ||
<FormattedMessage | ||
id="people.management.groups.detail.page.learnersTable.enrollmentsColumn.tooltip" | ||
defaultMessage="Total number of enrollment originated from the budget" | ||
description="Tooltip for the Enrollments column header in the Group Members table" | ||
/> | ||
</div> | ||
</Tooltip> | ||
)} | ||
> | ||
<Icon size="xs" src={InfoOutline} className="ml-1 d-inline-flex" /> | ||
</OverlayTrigger> | ||
</Stack> | ||
); | ||
|
||
export default EnrollmentsTableColumnHeader; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import formatDates from './utils'; | ||
|
||
const RecentActionTableCell = ({ | ||
row, | ||
}) => ( | ||
<div>Added: {formatDates(row.original.activatedAt)}</div> | ||
); | ||
|
||
RecentActionTableCell.propTypes = { | ||
row: PropTypes.shape({ | ||
original: PropTypes.shape({ | ||
activatedAt: PropTypes.string.isRequired, | ||
}).isRequired, | ||
}).isRequired, | ||
}; | ||
|
||
export default RecentActionTableCell; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters