refactor: update icon for shareable URL button

This commit is contained in:
codytseng 2026-01-01 15:05:08 +08:00
parent 162ae6b021
commit 7837d67ecf

View file

@ -6,7 +6,7 @@ import { checkNip43Support } from '@/lib/relay'
import { normalizeHttpUrl } from '@/lib/url' import { normalizeHttpUrl } from '@/lib/url'
import { cn } from '@/lib/utils' import { cn } from '@/lib/utils'
import { useNostr } from '@/providers/NostrProvider' import { useNostr } from '@/providers/NostrProvider'
import { Check, Copy, GitBranch, Link, Mail, SquareCode } from 'lucide-react' import { Check, Copy, GitBranch, Mail, Share2, SquareCode } from 'lucide-react'
import { useMemo, useState } from 'react' import { useMemo, useState } from 'react'
import { useTranslation } from 'react-i18next' import { useTranslation } from 'react-i18next'
import { toast } from 'sonner' import { toast } from 'sonner'
@ -154,7 +154,7 @@ function RelayControls({ url }: { url: string }) {
return ( return (
<div className="flex items-center gap-1"> <div className="flex items-center gap-1">
<Button variant="ghost" size="titlebar-icon" onClick={handleCopyShareableUrl}> <Button variant="ghost" size="titlebar-icon" onClick={handleCopyShareableUrl}>
{copiedShareableUrl ? <Check /> : <Link />} {copiedShareableUrl ? <Check /> : <Share2 />}
</Button> </Button>
<Button variant="ghost" size="titlebar-icon" onClick={handleCopyUrl}> <Button variant="ghost" size="titlebar-icon" onClick={handleCopyUrl}>
{copiedUrl ? <Check /> : <Copy />} {copiedUrl ? <Check /> : <Copy />}