Skip to content

Commit

Permalink
Merge pull request #4 from surajpathakcs/main
Browse files Browse the repository at this point in the history
fixes : Enter key not working on password decryption
  • Loading branch information
harshsbhat authored Dec 20, 2024
2 parents 063249c + 526ad5a commit 9df5366
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/components/controlModals/decrypt-old-site.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export function DecryptSite({ params, encryptedData }: DecryptProps) {
</CardDescription>
</CardHeader>
<CardContent>
<form>
<form onSubmit={handleSubmit}>
<div className="grid w-full items-center gap-4">
<div className="flex flex-col space-y-1.5">
<Label htmlFor="password">Password</Label>
Expand All @@ -78,14 +78,14 @@ export function DecryptSite({ params, encryptedData }: DecryptProps) {
<p className="text-red-500 text-sm">{error}</p>
)}
</div>
</form>
</CardContent>
<CardFooter className="flex gap-2">
<Button type="submit" onClick={handleSubmit}>Decrypt</Button>
<div className="flex gap-2 mt-4">
<Button type="submit" >Decrypt</Button>
<Link href="/">
<Button type="button" variant="outline">Cancel</Button>
</Link>
</CardFooter>
</div>
</form>
</CardContent>
</Card>
)}
</div>
Expand Down

0 comments on commit 9df5366

Please sign in to comment.