diff --git a/src/pages/add-dock.tsx b/src/pages/add-dock.tsx index b0ae512..660b7da 100644 --- a/src/pages/add-dock.tsx +++ b/src/pages/add-dock.tsx @@ -10,6 +10,14 @@ const AddDock = () => { const { data: sessionData } = useSession(); const user = api.users.getOne.useQuery({ id: sessionData?.user?.id ?? "" }); + const copyToClipboard = () => { + navigator.clipboard.writeText('npx dockhunt').then(() => { + alert('Command copied to clipboard!'); + }, (err) => { + console.error('Could not copy text: ', err); + }); + }; + return ( <>
@@ -46,7 +54,7 @@ const AddDock = () => {- To add your own dock, run the following command in your{" "} + To add your own dock, run the following command in your terminal:
-
- npx dockhunt
-
+
+ npx dockhunt
+
+
+ The command will: