We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a188c29 commit e1b4f1fCopy full SHA for e1b4f1f
src/modals/FamilyDDangModal/ShareCodeModal/index.tsx
@@ -11,19 +11,15 @@ export default function ShareCodeModal() {
11
const { data, refetch } = useInviteCode()
12
13
const handleShare = async () => {
14
+ navigator.clipboard.writeText(data.inviteCode)
15
if (navigator.share) {
16
try {
17
await navigator.share({
- title: '패밀리코드',
18
- text: '텍스트',
19
- url: data.inviteCode,
+ text: data.inviteCode,
20
})
21
} catch (err) {
22
console.error('Error sharing:', err)
23
}
24
- } else {
25
- navigator.clipboard.writeText(window.location.href)
26
- alert('Link copied to clipboard!')
27
28
29
0 commit comments