feat(input-action-buttons): prevent form submit

This commit is contained in:
ItzCrazyKns 2024-04-10 20:14:21 +05:30
parent 418cea8316
commit 32aaf46ee4
No known key found for this signature in database
GPG Key ID: 8162927C7CCE3065

View File

@ -4,7 +4,7 @@ import { Switch } from '@headlessui/react';
export const Attach = () => {
return (
<button className="p-2 text-white/50 rounded-xl hover:bg-[#1c1c1c] transition duration-200 hover:text-white">
<button type="button" className="p-2 text-white/50 rounded-xl hover:bg-[#1c1c1c] transition duration-200 hover:text-white">
<CopyPlus />
</button>
);
@ -12,7 +12,7 @@ export const Attach = () => {
export const Focus = () => {
return (
<button className="p-2 text-white/50 rounded-xl hover:bg-[#1c1c1c] transition duration-200 hover:text-white">
<button type="button" className="p-2 text-white/50 rounded-xl hover:bg-[#1c1c1c] transition duration-200 hover:text-white">
<ScanEye />
</button>
);