Allow copy on click for SFTP information (#3027)
This commit is contained in:
parent
25f656116a
commit
b8db5bc8b0
1 changed files with 14 additions and 10 deletions
|
@ -30,19 +30,23 @@ export default () => {
|
|||
<TitledGreyBox title={'SFTP Details'} css={tw`mb-6 md:mb-10`}>
|
||||
<div>
|
||||
<Label>Server Address</Label>
|
||||
<Input
|
||||
type={'text'}
|
||||
value={`sftp://${sftp.ip}:${sftp.port}`}
|
||||
readOnly
|
||||
/>
|
||||
<CopyOnClick text={`sftp://${sftp.ip}:${sftp.port}`}>
|
||||
<Input
|
||||
type={'text'}
|
||||
value={`sftp://${sftp.ip}:${sftp.port}`}
|
||||
readOnly
|
||||
/>
|
||||
</CopyOnClick>
|
||||
</div>
|
||||
<div css={tw`mt-6`}>
|
||||
<Label>Username</Label>
|
||||
<Input
|
||||
type={'text'}
|
||||
value={`${username}.${id}`}
|
||||
readOnly
|
||||
/>
|
||||
<CopyOnClick text={`${username}.${id}`}>
|
||||
<Input
|
||||
type={'text'}
|
||||
value={`${username}.${id}`}
|
||||
readOnly
|
||||
/>
|
||||
</CopyOnClick>
|
||||
</div>
|
||||
<div css={tw`mt-6 flex items-center`}>
|
||||
<div css={tw`flex-1`}>
|
||||
|
|
Loading…
Reference in a new issue