(feat:agent-details) redirect on url

This commit is contained in:
ManishMadan2882
2025-06-17 18:30:11 +05:30
parent 322b4eb18c
commit 98dc418a51

View File

@@ -98,7 +98,13 @@ export default function AgentDetailsModal({
{sharedToken ? ( {sharedToken ? (
<div className="flex flex-col gap-2"> <div className="flex flex-col gap-2">
<p className="inline break-all font-roboto text-[14px] font-medium leading-normal text-gray-700 dark:text-[#ECECF1]"> <p className="inline break-all font-roboto text-[14px] font-medium leading-normal text-gray-700 dark:text-[#ECECF1]">
{`${baseURL}/shared/agent/${sharedToken}`} <a
href={`${baseURL}/shared/agent/${sharedToken}`}
target="_blank"
rel="noreferrer"
>
{`${baseURL}/shared/agent/${sharedToken}`}
</a>
<CopyButton <CopyButton
textToCopy={`${baseURL}/shared/agent/${sharedToken}`} textToCopy={`${baseURL}/shared/agent/${sharedToken}`}
padding="p-1" padding="p-1"
@@ -181,7 +187,9 @@ export default function AgentDetailsModal({
{webhookUrl ? ( {webhookUrl ? (
<div className="flex flex-col gap-2"> <div className="flex flex-col gap-2">
<p className="break-all font-roboto text-[14px] font-medium leading-normal text-gray-700 dark:text-[#ECECF1]"> <p className="break-all font-roboto text-[14px] font-medium leading-normal text-gray-700 dark:text-[#ECECF1]">
{webhookUrl} <a href={webhookUrl} target="_blank" rel="noreferrer">
{webhookUrl}
</a>
<CopyButton <CopyButton
textToCopy={webhookUrl} textToCopy={webhookUrl}
padding="p-1" padding="p-1"