Merge pull request #269 from JeevaRamanathan/checkbox_issue

fix: Checkbox tick visible on both modes
This commit is contained in:
Nevo David 2024-10-03 12:08:55 +07:00 committed by GitHub
commit 37a674dced
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 16 additions and 2 deletions

View File

@ -42,8 +42,22 @@ export const Checkbox = forwardRef<null, {
)}
>
{currentStatus && (
<Image src="/form/checked.svg" alt="Checked" width={20} height={20} />
)}
<div>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
width="20"
height="20"
fill="none"
stroke="currentColor"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round"
>
<polyline points="20 6 9 17 4 12"></polyline>
</svg>
</div>
)}
</div>
);
});