Skip to content

Commit a048504

Browse files
committed
update example syntax
1 parent 6e56f07 commit a048504

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Fragment } from 'react';
22
import { Avatar } from '@patternfly/react-core';
33

4-
const _avatarIcon = (
4+
const avatarSvg = (
55
<svg aria-hidden="true" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 36 36">
66
<path fill="currentColor" d="M17.7,20.1c-3.5,0-6.4-2.9-6.4-6.4s2.9-6.4,6.4-6.4,6.4,2.9,6.4,6.4-2.8,6.4-6.4,6.4Z" />
77
<path
@@ -13,30 +13,30 @@ const _avatarIcon = (
1313

1414
<Fragment>
1515
<Avatar color="red" alt="red svg avatar">
16-
{_avatarIcon}
16+
{avatarSvg}
1717
</Avatar>
1818
<Avatar color="orangered" alt="orangered svg avatar">
19-
{_avatarIcon}
19+
{avatarSvg}
2020
</Avatar>
2121
<Avatar color="orange" alt="orange svg avatar">
22-
{_avatarIcon}
22+
{avatarSvg}
2323
</Avatar>
2424
<Avatar color="yellow" alt="yellow svg avatar">
25-
{_avatarIcon}
25+
{avatarSvg}
2626
</Avatar>
2727
<Avatar color="green" alt="green svg avatar">
28-
{_avatarIcon}
28+
{avatarSvg}
2929
</Avatar>
3030
<Avatar color="teal" alt="teal svg avatar">
31-
{_avatarIcon}
31+
{avatarSvg}
3232
</Avatar>
3333
<Avatar color="blue" alt="blue svg avatar">
34-
{_avatarIcon}
34+
{avatarSvg}
3535
</Avatar>
3636
<Avatar color="purple" alt="purple svg avatar">
37-
{_avatarIcon}
37+
{avatarSvg}
3838
</Avatar>
3939
<Avatar color="gray" alt="gray svg avatar">
40-
{_avatarIcon}
40+
{avatarSvg}
4141
</Avatar>
4242
</Fragment>;

0 commit comments

Comments
 (0)