diff --git a/frontend/pages/hosts/details/cards/HostSummary/HostSummary.tsx b/frontend/pages/hosts/details/cards/HostSummary/HostSummary.tsx index a62c3d9acc..e27ef26cc1 100644 --- a/frontend/pages/hosts/details/cards/HostSummary/HostSummary.tsx +++ b/frontend/pages/hosts/details/cards/HostSummary/HostSummary.tsx @@ -415,7 +415,7 @@ const HostSummary = ({ backgroundColor={COLORS["tooltip-bg"]} > - {tag.generateTooltip()} + {tag.generateTooltip(platform)} diff --git a/frontend/pages/hosts/details/cards/HostSummary/helpers.tsx b/frontend/pages/hosts/details/cards/HostSummary/helpers.tsx index 08f21aa57a..0282416be7 100644 --- a/frontend/pages/hosts/details/cards/HostSummary/helpers.tsx +++ b/frontend/pages/hosts/details/cards/HostSummary/helpers.tsx @@ -4,7 +4,7 @@ import { HostMdmDeviceStatusUIState } from "../../helpers"; interface IDeviceStatusTag { title: string; tagType: "warning" | "error"; - generateTooltip: (platform?: string) => string; + generateTooltip: (platform: string) => string; } type HostMdmDeviceStatusUIStateNoUnlock = Exclude< @@ -30,13 +30,13 @@ export const DEVICE_STATUS_TAGS: DeviceStatusTagConfig = { unlocking: { title: "UNLOCK PENDING", tagType: "warning", - generateTooltip: () => + generateTooltip: (platform) => "Host will unlock when it comes online. If the host is online, it will unlock the next time it checks in to Fleet.", }, locking: { title: "LOCK PENDING", tagType: "warning", - generateTooltip: () => + generateTooltip: (platform) => "Host will lock when it comes online. If the host is online, it will lock the next time it checks in to Fleet.", }, };