Skip to content

Commit

Permalink
Merge pull request openedx#432 from openedx/knguyen2/ent-9614
Browse files Browse the repository at this point in the history
feat: adds info tool tip in view susbidies column
  • Loading branch information
katrinan029 authored Oct 10, 2024
2 parents 8c48116 + 2a16200 commit 12921f7
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion src/Configuration/Customers/CustomerDataTable/CustomersPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ import React, {
import PropTypes from 'prop-types';
import debounce from 'lodash.debounce';
import {
Container, DataTable, TextFilter,
Container, DataTable, Icon, OverlayTrigger, TextFilter, Tooltip,
} from '@openedx/paragon';
import { FormattedMessage } from '@edx/frontend-platform/i18n';
import { camelCaseObject } from '@edx/frontend-platform';
import { logError } from '@edx/frontend-platform/logging';
import { InfoOutline } from '@openedx/paragon/icons';

import {
CustomerDetailLink,
Expand All @@ -23,6 +25,23 @@ import CustomerDetailRowSubComponent from './CustomerDetailSubComponent';
const expandAllRowsHandler = ({ getToggleAllRowsExpandedProps }) => (
<button type="button" className="btn btn-link btn-inline font-weight-bold" {...getToggleAllRowsExpandedProps()}>
View subsidies
<OverlayTrigger
key="other-subsidies-tooltip"
placement="top"
overlay={(
<Tooltip id="other-subsidies-tooltip">
<div>
<FormattedMessage
id="configuration.customersPage.viewSubsidiesColumn.tooltip"
defaultMessage="A checkmark indicates an active subsidy."
description="Tooltip for the View subsidies column header in the Customers table"
/>
</div>
</Tooltip>
)}
>
<Icon size="xs" src={InfoOutline} className="ml-1 d-inline-flex" />
</OverlayTrigger>
</button>
);

Expand Down

0 comments on commit 12921f7

Please sign in to comment.