Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

feat(call): add tooltip to share with team button (#2877)

Will Hutchinson5486f19576e3
diff --git a/js/app/packages/channel/Call/CallOverlay.tsx b/js/app/packages/channel/Call/CallOverlay.tsx
index f22310ddf8..349c59cde4 100644
--- a/js/app/packages/channel/Call/CallOverlay.tsx
+++ b/js/app/packages/channel/Call/CallOverlay.tsx
@@ -19,6 +19,7 @@ import {
GroupLabel,
MenuSeparator,
} from '@core/component/Menu';
+import { Tooltip } from '@core/component/Tooltip';
import { tryMacroId, useDisplayName } from '@core/user';
import { useCallContext, type MediaDeviceInfo } from './CallContext';
@@ -432,20 +433,14 @@ export function CallOverlay(props: { onLeave: () => void }) {
<Screencast class="w-5 h-5" />
</ControlButton>
- <div
- title={
- callCtx.isSharedWithTeam()
- ? 'Shared with team — click to make private'
- : 'Not shared — click to share with team'
- }
- >
+ <Tooltip tooltip={<span class="text-xs">Toggle share with team</span>}>
<ControlButton
onClick={handleToggleShareWithTeam}
active={callCtx.isSharedWithTeam()}
>
<Users class="w-5 h-5" />
</ControlButton>
- </div>
+ </Tooltip>
<ControlButton onClick={props.onLeave} danger>
<PhoneDisconnect class="w-5 h-5" />