From 2b8f664e5960fddad0ca8faebb38785db3f7af2e Mon Sep 17 00:00:00 2001 From: Mohammad Mahdi Date: Wed, 7 May 2025 23:48:27 +0330 Subject: [PATCH] Add share button for public feeds --- src/pages/DashboardPage.tsx | 37 +++++++++++++++++++++++++++---------- 1 file changed, 27 insertions(+), 10 deletions(-) diff --git a/src/pages/DashboardPage.tsx b/src/pages/DashboardPage.tsx index 201facc..e5481fe 100644 --- a/src/pages/DashboardPage.tsx +++ b/src/pages/DashboardPage.tsx @@ -214,16 +214,33 @@ export function DashboardPage() { Feed ID: {selectedFeed.id} + size="icon" + variant="ghost" + className="h-5 w-5 p-1" + onClick={() => { + navigator.clipboard.writeText(selectedFeed.id); + toast.success("Feed ID copied to clipboard"); + }} + title="Copy Feed ID" +> + + + +{selectedFeed.isPublic && ( + +)} + ) : (