Skip to content

Commit 820f73b

Browse files
committed
Fix svg
1 parent 28c6e3d commit 820f73b

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

src/components/ComponentList/ComponentList.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,16 @@ export const ComponentList = () => {
4242
<Box sx={{ borderInlineStart: "1px solid red", borderColor: "divider", my: 0.5, paddingInlineStart: 0.5 }}>
4343
{category[1]?.map((component) => {
4444
const hasOverride = typeof component === "object";
45+
const componentName = hasOverride ? component[0] : component;
4546
return (
4647
<Button
48+
key={componentName}
4749
size="medium"
4850
sx={{ color: "text.primary", justifyContent: "start", textTransform: "capitalize", fontSize: "14px" }}
4951
fullWidth
5052
onClick={() => highlightComponent(hasOverride ? component[1] : constructClassName(component))}
5153
>
52-
{hasOverride ? component[0] : component}
54+
{componentName}
5355
</Button>
5456
);
5557
})}

src/components/InfoPanel/InfoPanel.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ export const InfoPanel = () => {
4545
fill="none"
4646
className="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-kbd6i0-MuiSvgIcon-root"
4747
viewBox="0 0 24 24"
48+
height="20"
49+
width="20"
4850
>
4951
<path
5052
fill="#ffffff"

0 commit comments

Comments
 (0)