mirror of
https://github.com/aljazceru/mutiny-web.git
synced 2025-12-17 22:34:23 +01:00
hide password for nsec input
This commit is contained in:
committed by
Tony Giorgio
parent
05a2022211
commit
9efe1484b6
@@ -32,6 +32,7 @@ export function ImportNsecForm() {
|
||||
<>
|
||||
<SimpleInput
|
||||
value={nsec()}
|
||||
type="password"
|
||||
onInput={(e) => setNsec(e.currentTarget.value)}
|
||||
placeholder={`Nostr private key (starts with "nsec")`}
|
||||
/>
|
||||
|
||||
@@ -15,7 +15,7 @@ export function SimpleInput(props: SimpleInputProps) {
|
||||
return (
|
||||
<input
|
||||
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}
|
||||
onInput={(e) => props.onInput(e)}
|
||||
placeholder={props.placeholder}
|
||||
|
||||
Reference in New Issue
Block a user