diff --git a/src/pages/add-dock.tsx b/src/pages/add-dock.tsx index b0ae512..d60900a 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 copyCommandToClipboard = () => { + navigator.clipboard.writeText('npx dockhunt').then(() => { + alert('Command copied to clipboard!'); + }, (err) => { + console.error('Could not copy command: ', err); + }); + }; + return ( <> @@ -62,9 +70,17 @@ const AddDock = () => { To add your own dock, run the following command in your{" "} terminal:

- - npx dockhunt - +
+ + npx dockhunt + + +

The command will:

  1. Find the apps in your dock