Skip to content

Commit

Permalink
Merge pull request #1971 from ever-co/fix/#1970-tooltip-title-case
Browse files Browse the repository at this point in the history
fix: #1970 Tooltip title case
  • Loading branch information
evereq authored Dec 7, 2023
2 parents 3c607d1 + 490522b commit aa398b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/web/lib/features/timer/timer-status.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { IClassName, ITimerStatus, ITimerStatusEnum, OT_Member } from '@app/inte
import { clsxm } from '@app/utils';
import { Tooltip } from 'lib/components';
import { PauseIcon, StopCircleIcon, TimerPlayIcon, UserOnlineAndTrackingTimeIcon } from 'lib/components/svgs';
import { capitalize } from 'lodash';
import moment from 'moment';

type Props = {
Expand All @@ -15,7 +16,7 @@ type Props = {
export function TimerStatus({ status, className, showIcon = true, tooltipClassName, labelContainerClassName }: Props) {
return (
<Tooltip
label={status === 'online' ? 'Online and Tracking Time' : status}
label={status === 'online' ? 'Online and Tracking Time' : capitalize(status)}
enabled
placement="auto"
className={tooltipClassName}
Expand Down

0 comments on commit aa398b4

Please sign in to comment.