hide password for nsec input

This commit is contained in:
Paul Miller
2024-03-27 13:27:41 -05:00
committed by Tony Giorgio
parent 05a2022211
commit 9efe1484b6
2 changed files with 2 additions and 1 deletions

View File

@@ -32,6 +32,7 @@ export function ImportNsecForm() {
<> <>
<SimpleInput <SimpleInput
value={nsec()} value={nsec()}
type="password"
onInput={(e) => setNsec(e.currentTarget.value)} onInput={(e) => setNsec(e.currentTarget.value)}
placeholder={`Nostr private key (starts with "nsec")`} placeholder={`Nostr private key (starts with "nsec")`}
/> />

View File

@@ -15,7 +15,7 @@ export function SimpleInput(props: SimpleInputProps) {
return ( return (
<input <input
class="w-full rounded-lg bg-m-grey-800 p-2 placeholder-m-grey-400 disabled:text-m-grey-400" class="w-full rounded-lg bg-m-grey-800 p-2 placeholder-m-grey-400 disabled:text-m-grey-400"
type="text" type={props.type || "text"}
value={props.value} value={props.value}
onInput={(e) => props.onInput(e)} onInput={(e) => props.onInput(e)}
placeholder={props.placeholder} placeholder={props.placeholder}