fix: resolve Untitled QR issue and make destination links clickable in Admin modal
This commit is contained in:
@@ -98,11 +98,15 @@ export default function UserDetailsModal({ userId, onClose }: UserDetailsModalPr
|
||||
</span>
|
||||
</div>
|
||||
<div className="text-xs text-gray-500 mt-1 truncate max-w-md" title={qr.destination_url}>
|
||||
{qr.destination_url}
|
||||
<a href={qr.destination_url} target="_blank" rel="noopener noreferrer" className="hover:text-indigo-600 hover:underline">
|
||||
{qr.destination_url}
|
||||
</a>
|
||||
</div>
|
||||
{qr.type === 'dynamic' && qr.short_url_id && (
|
||||
<div className="text-xs text-indigo-500 mt-1">
|
||||
/{qr.short_url_id}
|
||||
<a href={`${process.env.NEXT_PUBLIC_APP_URL || ''}/l/${qr.short_url_id}`} target="_blank" rel="noopener noreferrer" className="hover:text-indigo-700 hover:underline">
|
||||
/{qr.short_url_id}
|
||||
</a>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user