From f84e2c0d9dfa23de97755cc3c7d359631d61bd27 Mon Sep 17 00:00:00 2001 From: Vivian Phung Date: Wed, 22 May 2024 14:46:53 -0400 Subject: [PATCH] Refactor: Rename SVG Properties for React Standard (#194) ### TL;DR A refactor of the Icon components in the front-end package has been carried out. This includes `CollaboratorsIcon.tsx`, `CopyUnfilledIcon.tsx`, and `TrashIcon.tsx`. ### What changed? Several attributes previously written in kebab-case were changed to camelCase to adhere to JSX syntax standards. These include `stroke-linecap`, `stroke-linejoin`, `fill-rule`, and `clip-rule`. ### How to test? Ensure that the rendering and functionality of the icons in the application remain unchanged after this update. ### Why make this change? The update ensures that our code complies with the preferred casing convention in JSX and avoids all potential related issues. --- .../src/components/shared/CustomIcon/CollaboratorsIcon.tsx | 2 +- .../src/components/shared/CustomIcon/CopyUnfilledIcon.tsx | 4 ++-- .../frontend/src/components/shared/CustomIcon/TrashIcon.tsx | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/frontend/src/components/shared/CustomIcon/CollaboratorsIcon.tsx b/packages/frontend/src/components/shared/CustomIcon/CollaboratorsIcon.tsx index ee1e05e..482d82a 100644 --- a/packages/frontend/src/components/shared/CustomIcon/CollaboratorsIcon.tsx +++ b/packages/frontend/src/components/shared/CustomIcon/CollaboratorsIcon.tsx @@ -12,7 +12,7 @@ export const CollaboratorsIcon = (props: CustomIconProps) => { ); diff --git a/packages/frontend/src/components/shared/CustomIcon/CopyUnfilledIcon.tsx b/packages/frontend/src/components/shared/CustomIcon/CopyUnfilledIcon.tsx index 7add0b3..191fc99 100644 --- a/packages/frontend/src/components/shared/CustomIcon/CopyUnfilledIcon.tsx +++ b/packages/frontend/src/components/shared/CustomIcon/CopyUnfilledIcon.tsx @@ -12,8 +12,8 @@ export const CopyUnfilledIcon = (props: CustomIconProps) => { ); diff --git a/packages/frontend/src/components/shared/CustomIcon/TrashIcon.tsx b/packages/frontend/src/components/shared/CustomIcon/TrashIcon.tsx index 348e03c..81da7fe 100644 --- a/packages/frontend/src/components/shared/CustomIcon/TrashIcon.tsx +++ b/packages/frontend/src/components/shared/CustomIcon/TrashIcon.tsx @@ -10,8 +10,8 @@ export const TrashIcon: React.FC = (props) => { {...props} >