Skip to content

Commit

Permalink
feat: adds info tool tip in view susbidies column
Browse files Browse the repository at this point in the history
  • Loading branch information
katrinan029 committed Oct 9, 2024
1 parent 8c48116 commit 2a16200
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 2a16200

Please sign in to comment.