mirror of
https://github.com/aljazceru/mutiny-web.git
synced 2025-12-18 06:44:27 +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
|
<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")`}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -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}
|
||||||
|
|||||||
Reference in New Issue
Block a user