Skip to content

Commit ea96753

Browse files
committed
lint avatar component documentation
Signed-off-by: Liben Hailu <libenhailu04@gmail.com>
1 parent 575c569 commit ea96753

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/sections/Projects/Sistent/components/avatar/code.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ const avatarExamples = [
1414
title: "Image Avatar",
1515
description: "Display user profile images.",
1616
element: <Avatar src={user} alt="User Name" />,
17-
code: `<Avatar src="/path/to/user-image.jpg" alt="User Name" />`,
17+
code: "<Avatar src=\"/path/to/user-image.jpg\" alt=\"User Name\" />",
1818
id: "image-avatar",
1919
},
2020
{
2121
title: "Initials Avatar",
2222
description: "Use initials when an image is unavailable.",
2323
element: <Avatar>JD</Avatar>,
24-
code: `<Avatar>JD</Avatar>`,
24+
code: "<Avatar>JD</Avatar>",
2525
id: "initials-avatar",
2626
},
2727
{
@@ -32,7 +32,7 @@ const avatarExamples = [
3232
<FaUser />
3333
</Avatar>
3434
),
35-
code: `<Avatar><UserIcon /></Avatar>`,
35+
code: "<Avatar><UserIcon /></Avatar>",
3636
id: "icon-avatar",
3737
},
3838
{

src/sections/Projects/Sistent/components/avatar/guidance.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ const Guidance = () => {
9292
<li>
9393
Example lazy loading implementation:
9494
<code>
95-
{'<Avatar loading="lazy" src="/path/to/optimized/image.jpg"/>'}
95+
{"<Avatar loading=\"lazy\" src=\"/path/to/optimized/image.jpg\"/>"}
9696
</code>
9797
</li>
9898
</ul>

0 commit comments

Comments
 (0)