Skip to content

Commit 6f99cd3

Browse files
committed
fix(docs): image urls
1 parent 34e1d25 commit 6f99cd3

6 files changed

Lines changed: 18 additions & 18 deletions

File tree

packages/react/src/avatar/demo/group.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,27 +11,27 @@ Include multiple avatar items inside an `AvatarGroup` container.
1111
return (
1212
<div>
1313
<Group>
14-
<Avatar size={42} src="/avatar/avatar2.png"/>
15-
<Avatar size={42} src="/avatar/avatar3.png"/>
16-
<Avatar size={42} src="/avatar/avatar4.png"/>
17-
<Avatar size={42} src="/avatar/avatar5.png"/>
14+
<Avatar size={42} src="../avatar/avatar2.png"/>
15+
<Avatar size={42} src="../avatar/avatar3.png"/>
16+
<Avatar size={42} src="../avatar/avatar4.png"/>
17+
<Avatar size={42} src="../avatar/avatar5.png"/>
1818
</Group>
1919
<br/>
2020
<br/>
2121
<Group>
22-
<Avatar size={42} src="/avatar/avatar2.png"/>
23-
<Avatar size={42} src="/avatar/avatar3.png"/>
24-
<Avatar size={42} src="/avatar/avatar4.png"/>
25-
<Avatar size={42} src="/avatar/avatar5.png"/>
22+
<Avatar size={42} src="../avatar/avatar2.png"/>
23+
<Avatar size={42} src="../avatar/avatar3.png"/>
24+
<Avatar size={42} src="../avatar/avatar4.png"/>
25+
<Avatar size={42} src="../avatar/avatar5.png"/>
2626
<Avatar size={42}>+100</Avatar>
2727
</Group>
2828
<br/>
2929
<br/>
3030
<Group gap={0}>
31-
<Avatar size={42} src="/avatar/avatar2.png"/>
32-
<Avatar size={42} src="/avatar/avatar3.png"/>
33-
<Avatar size={42} src="/avatar/avatar4.png"/>
34-
<Avatar size={42} src="/avatar/avatar5.png"/>
31+
<Avatar size={42} src="../avatar/avatar2.png"/>
32+
<Avatar size={42} src="../avatar/avatar3.png"/>
33+
<Avatar size={42} src="../avatar/avatar4.png"/>
34+
<Avatar size={42} src="../avatar/avatar5.png"/>
3535
</Group>
3636
</div>
3737
)

packages/react/src/avatar/demo/type.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Image, Icon and letter are supported, and the latter two kinds avatar can have c
1515
<Avatar icon={<IconUser size={20}/>} style={style}/>
1616
<Avatar style={style}>U</Avatar>
1717
<Avatar style={style}>USER</Avatar>
18-
<Avatar src="/avatar/avatar1.png" style={{ ...style }}/>
18+
<Avatar src="../avatar/avatar1.png" style={{ ...style }}/>
1919
<Avatar style={{ ...style, color: '#f56a00', backgroundColor: '#fde3cf' }}>LW</Avatar>
2020
<Avatar style={{ ...style, backgroundColor: '#87d068' }} icon={<IconUser size={20}/>} />
2121
</>

packages/react/src/card/demo/image.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ A card using an image to reinforce the content.
88
<Card actions={[
99
<a key={1} href="">Learn more</a>
1010
]}>
11-
<Image width="100%" src="/avatar/plants.jpg"/>
11+
<Image width="100%" src="../avatar/plants.jpg"/>
1212
<Card.Content>
1313
<h2 style={{ margin: 0 }}>Koala</h2>
1414
<p style={{ marginBottom: 0 }}>The koala is an arboreal herbivorous marsupial native to Australia. It is the only extant representative of the family Phascolarctidae and its closest living relatives are the wombats, which comprise the family Vombatidae. </p>

packages/react/src/image/demo/fallback.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Providing a fallback image for when there is an error loading the src of the image.
66

77
```jsx live
8-
<Image src="" fallback="/avatar/avatar2.png"/>
8+
<Image src="" fallback="../avatar/avatar4.png"/>
99
```
1010

1111
</Demo>

packages/react/src/image/demo/lazy.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ Set `lazy` and `placehoulder` properties to implement the lazy load.
88
<div style={{ height: 250, overflowY: 'scroll' }}>
99
<p>Scroll up to make images into the view area.</p>
1010
<div style={{ height: 350 }}/>
11-
<Image lazy round src="/avatar/avatar3.png" placeholder="/avatar/avatar3_blur.png"/>
11+
<Image lazy round src="../avatar/avatar3.png" placeholder="../avatar/avatar3_blur.png"/>
1212
<div style={{ height: 350 }}/>
13-
<Image lazy width={300} height={200} src="/avatar/plants.jpg" placeholder="/avatar/plants_blur.png"/>
13+
<Image lazy width={300} height={200} src="../avatar/plants.jpg" placeholder="../avatar/plants_blur.png"/>
1414
<div style={{ height: 100 }}/>
1515
</div>
1616
```

packages/react/src/image/demo/round.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Display a rounded image.
66

77
```jsx live
8-
<Image round src="/avatar/avatar2.png"/>
8+
<Image round src="../avatar/avatar2.png"/>
99
```
1010

1111
</Demo>

0 commit comments

Comments
 (0)