Skip to content

Commit

Permalink
hide password for nsec input
Browse files Browse the repository at this point in the history
  • Loading branch information
futurepaul authored and TonyGiorgio committed Mar 27, 2024
1 parent 05a2022 commit 9efe148
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/ImportNsecForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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")`}
/>
Expand Down
2 changes: 1 addition & 1 deletion src/components/SimpleInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 9efe148

Please sign in to comment.