Skip to content

Commit 37a674d

Browse files
authored
Merge pull request gitroomhq#269 from JeevaRamanathan/checkbox_issue
fix: Checkbox tick visible on both modes
2 parents 3465b09 + f21ea60 commit 37a674d

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

libraries/react-shared-libraries/src/form/checkbox.tsx

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,22 @@ export const Checkbox = forwardRef<null, {
4242
)}
4343
>
4444
{currentStatus && (
45-
<Image src="/form/checked.svg" alt="Checked" width={20} height={20} />
46-
)}
45+
<div>
46+
<svg
47+
xmlns="http://www.w3.org/2000/svg"
48+
viewBox="0 0 24 24"
49+
width="20"
50+
height="20"
51+
fill="none"
52+
stroke="currentColor"
53+
strokeWidth="2"
54+
strokeLinecap="round"
55+
strokeLinejoin="round"
56+
>
57+
<polyline points="20 6 9 17 4 12"></polyline>
58+
</svg>
59+
</div>
60+
)}
4761
</div>
4862
);
4963
});

0 commit comments

Comments
 (0)