feat: add copy functionality for phone and Telegram username in ContactLinks component

- Implemented copy buttons for phone number and Telegram username in the ContactLinks component, enhancing user interaction.
- Integrated tooltip feedback to indicate successful copy actions.
- Updated tests to cover new copy functionality and ensure proper rendering of copy buttons based on props.
- Added localization support for new copy-related strings in the i18n messages.
This commit is contained in:
2026-03-06 18:55:56 +03:00
parent 34001d22d9
commit 24d6ecbedb
7 changed files with 388 additions and 20 deletions

View File

@@ -334,6 +334,7 @@ export function CurrentDutyView({ onBack, openedFromPin = false }: CurrentDutyVi
layout="block"
showLabels={true}
contextLabel={duty.full_name ?? undefined}
showCopyButtons={true}
/>
) : (
<p className="text-sm text-muted-foreground">