diff --git a/components/dashboard/src/components/Modal.tsx b/components/dashboard/src/components/Modal.tsx index c6e3f6b8cd..df1a4e65d0 100644 --- a/components/dashboard/src/components/Modal.tsx +++ b/components/dashboard/src/components/Modal.tsx @@ -13,6 +13,7 @@ export default function Modal(props: { // specify a key if having the same title and window.location specify?: string; title?: string; + hideDivider?: boolean; buttons?: React.ReactChild[] | React.ReactChild; children: React.ReactChild[] | React.ReactChild; visible: boolean; @@ -94,7 +95,12 @@ export default function Modal(props: { {props.title ? ( <>
+ <> +
- Before connecting via SSH, make sure you have an existing SSH private key on your machine. You - can create one using - - ssh-keygen +
- The following shell command can be used to SSH into this workspace. + , or use a generated access token. +
+ {!selectSSHKey ? ( + "The following shell command can be used to SSH into this workspace." + ) : ( + <> + The following shell command can be used to SSH into this workspace with a{" "} + + ssh key + + . + > + )}