Skip to content

Commit

Permalink
remove asterisks
Browse files Browse the repository at this point in the history
  • Loading branch information
Amogh-Bharadwaj committed Dec 12, 2023
1 parent cd48a02 commit ed36d38
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
2 changes: 2 additions & 0 deletions ui/app/peers/create/[peerType]/helpers/pg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,14 @@ export const sshSetting = [
stateHandler: (value: string, setter: sshSetter) =>
setter((curr) => ({ ...curr, password: value })),
type: 'password',
optional: true,
tips: 'Password associated with the user you provided.',
},
{
label: 'BASE64 Private Key',
stateHandler: (value: string, setter: sshSetter) =>
setter((curr) => ({ ...curr, privateKey: value })),
optional: true,
tips: 'Private key as a BASE64 string for authentication in order to SSH into your machine.',
},
];
Expand Down
18 changes: 10 additions & 8 deletions ui/components/PeerForms/PostgresForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,16 @@ export default function PostgresForm({ settings, setter }: ConfigProps) {
label={
<Label>
{sshParam.label}{' '}
<Tooltip
style={{ width: '100%' }}
content={'This is a required field.'}
>
<Label colorName='lowContrast' colorSet='destructive'>
*
</Label>
</Tooltip>
{!sshParam.optional && (
<Tooltip
style={{ width: '100%' }}
content={'This is a required field.'}
>
<Label colorName='lowContrast' colorSet='destructive'>
*
</Label>
</Tooltip>
)}
</Label>
}
action={
Expand Down

0 comments on commit ed36d38

Please sign in to comment.