diff --git a/src/pages/add-dock.tsx b/src/pages/add-dock.tsx index b0ae512..040c6df 100644 --- a/src/pages/add-dock.tsx +++ b/src/pages/add-dock.tsx @@ -6,6 +6,16 @@ import { desktopAppDownloadLink } from "utils/constants"; import { useSession } from "next-auth/react"; import { api } from "../utils/api"; +const copyToClipboard = async (text) => { + try { + await navigator.clipboard.writeText(text); + // Optional: Display feedback to the user + alert('Command copied to clipboard!'); + } catch (err) { + console.error('Failed to copy: ', err); + } +}; + const AddDock = () => { const { data: sessionData } = useSession(); const user = api.users.getOne.useQuery({ id: sessionData?.user?.id ?? "" }); @@ -62,9 +72,17 @@ const AddDock = () => { To add your own dock, run the following command in your{" "} terminal:
-
- npx dockhunt
-
+
+ npx dockhunt
+
+
+ The command will: