diff --git a/frontend/src/components/project/project-month-list/closed-list/badges/InboundBadge.tsx b/frontend/src/components/project/project-month-list/closed-list/badges/InboundBadge.tsx index a4f2b04a..99e5a6ee 100644 --- a/frontend/src/components/project/project-month-list/closed-list/badges/InboundBadge.tsx +++ b/frontend/src/components/project/project-month-list/closed-list/badges/InboundBadge.tsx @@ -1,45 +1,45 @@ import React from 'react'; -import { t } from '../../../../utils'; -import { TimesheetBadgeProps } from './TimesheetBadge'; +import {t} from '../../../../utils'; +import {TimesheetBadgeProps} from './TimesheetBadge'; import './InboundBadge.scss'; +import {Tooltip} from "../../../../controls/Tooltip"; const AllInboundPaidBadge = ( - + {t('projectMonth.list.inboundAllPaid')} ); /** ProjectMonth closed month Inbound badge */ -export const InboundBadge = ({ pending, totals }: TimesheetBadgeProps) => { +export const InboundBadge = ({pending, totals}: TimesheetBadgeProps) => { if (!pending) { return AllInboundPaidBadge; } return ( - ${t('projectMonth.inboundNew')}
${totals.inboundNew}`} - > - {totals.inboundNewCount} -
+ ${t('projectMonth.inboundNew')}
${totals.inboundNew}`}> + + {totals.inboundNewCount} + +
- ${t('projectMonth.inboundValidated')}
${totals.inboundValidated}`} - > - {totals.inboundValidatedCount} -
+ ${t('projectMonth.inboundValidated')}
${totals.inboundValidated}`}> + + {totals.inboundValidatedCount} + +
- ${t('projectMonth.inboundPaid')}
${totals.inboundPaid}`} - > + ${t('projectMonth.inboundPaid')}
${totals.inboundPaid}`}> + {totals.inboundPaidCount} - +
+
) }; diff --git a/frontend/src/components/project/project-month-list/closed-list/badges/OutboundBadge.tsx b/frontend/src/components/project/project-month-list/closed-list/badges/OutboundBadge.tsx index d45038da..25789598 100644 --- a/frontend/src/components/project/project-month-list/closed-list/badges/OutboundBadge.tsx +++ b/frontend/src/components/project/project-month-list/closed-list/badges/OutboundBadge.tsx @@ -1,16 +1,16 @@ import React from 'react'; import { t } from '../../../../utils'; import { ProjectMonthBadgeTotals } from "../ProjectMonthBadgeTotals"; +import {Tooltip} from "../../../../controls/Tooltip"; /** ProjectMonth closed month Outbound badge */ export const OutboundBadge = ({ totals }: { totals: ProjectMonthBadgeTotals; }) => { return ( - ${t('projectMonth.outboundPaid')}
` + totals.unverified} - > - - {t('projectMonth.list.verifiedBadge', {verified: totals.verified, total: totals.total})} -
+ ${t('projectMonth.outboundPaid')}
` + totals.unverified}> + + + {t('projectMonth.list.verifiedBadge', {verified: totals.verified, total: totals.total})} + +
); }; diff --git a/frontend/src/components/project/project-month-list/closed-list/badges/TimesheetBadge.tsx b/frontend/src/components/project/project-month-list/closed-list/badges/TimesheetBadge.tsx index bd65d008..006dd605 100644 --- a/frontend/src/components/project/project-month-list/closed-list/badges/TimesheetBadge.tsx +++ b/frontend/src/components/project/project-month-list/closed-list/badges/TimesheetBadge.tsx @@ -1,6 +1,7 @@ import React from 'react'; import { t } from '../../../../utils'; import { ProjectMonthBadgeTotals } from "../ProjectMonthBadgeTotals"; +import {Tooltip} from "../../../../controls/Tooltip"; export type TimesheetBadgeProps = { pending: boolean; @@ -22,9 +23,11 @@ export const TimesheetBadge = ({ pending, totals }: TimesheetBadgeProps) => { } return ( - - ${t('projectMonth.timesheetValidated')}
` + totals.timesheetPending} /> - {t('projectMonth.list.timesheetPending', {timesheetPendingCount: totals.timesheetPendingCount})} -
+ ${t('projectMonth.timesheetValidated')}
` + totals.timesheetPending}> + + + {t('projectMonth.list.timesheetPending', {timesheetPendingCount: totals.timesheetPendingCount})} + +
); };