Skip to content

Commit ad0cdab

Browse files
authored
fix stories for react-image, use images from CDN (#15545)
1 parent 5158b5e commit ad0cdab

File tree

6 files changed

+85
-11
lines changed

6 files changed

+85
-11
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"type": "none",
3+
"comment": "fix stories for `react-image`, use images from CDN",
4+
"packageName": "@fluentui/react-image",
5+
"email": "[email protected]",
6+
"dependentChangeType": "none",
7+
"date": "2020-10-16T08:32:13.798Z"
8+
}

packages/react-examples/src/react-image/Image.stories.tsx packages/react-examples/src/react-image/Image/Image.stories.tsx

+77-11
Original file line numberDiff line numberDiff line change
@@ -13,31 +13,97 @@ const Stack = (props: React.PropsWithChildren<{ horizontal?: boolean }>) => {
1313

1414
export const ImageAppearanceShape = () => (
1515
<Stack horizontal>
16-
<Image alt="Ade's avatar" src="images/avatar/ade.jpg" height={200} width={200} />
17-
<Image alt="Chris's avatar" rounded src="images/avatar/chris.jpg" height={200} width={200} />
18-
<Image alt="Laura's avatar" circular src="images/avatar/laura.jpg" height={200} width={200} />
16+
<Image
17+
alt="Ade's avatar"
18+
src="https://fabricweb.azureedge.net/fabric-website/assets/images/avatar/large/ade.jpg"
19+
height={200}
20+
width={200}
21+
/>
22+
<Image
23+
alt="Chris's avatar"
24+
rounded
25+
src="https://fabricweb.azureedge.net/fabric-website/assets/images/avatar/large/chris.jpg"
26+
height={200}
27+
width={200}
28+
/>
29+
<Image
30+
alt="Laura's avatar"
31+
circular
32+
src="https://fabricweb.azureedge.net/fabric-website/assets/images/avatar/large/laura.jpg"
33+
height={200}
34+
width={200}
35+
/>
1936
</Stack>
2037
);
2138

2239
export const ImageVariationsBorder = () => (
2340
<Stack horizontal>
2441
<Stack horizontal>
25-
<Image alt="Ade's avatar" src="images/avatar/ade.jpg" height={200} width={200} />
26-
<Image alt="Chris's avatar" rounded src="images/avatar/chris.jpg" height={200} width={200} />
27-
<Image alt="Laura's avatar" circular src="images/avatar/laura.jpg" height={200} width={200} />
42+
<Image
43+
alt="Ade's avatar"
44+
src="https://fabricweb.azureedge.net/fabric-website/assets/images/avatar/large/ade.jpg"
45+
height={200}
46+
width={200}
47+
/>
48+
<Image
49+
alt="Chris's avatar"
50+
rounded
51+
src="https://fabricweb.azureedge.net/fabric-website/assets/images/avatar/large/chris.jpg"
52+
height={200}
53+
width={200}
54+
/>
55+
<Image
56+
alt="Laura's avatar"
57+
circular
58+
src="https://fabricweb.azureedge.net/fabric-website/assets/images/avatar/large/laura.jpg"
59+
height={200}
60+
width={200}
61+
/>
2862
</Stack>
2963
<Stack horizontal>
30-
<Image alt="Ade's avatar" bordered src="images/avatar/ade.jpg" height={200} width={200} />
31-
<Image alt="Chris's avatar" bordered rounded src="images/avatar/chris.jpg" height={200} width={200} />
32-
<Image alt="Laura's avatar" bordered circular src="images/avatar/laura.jpg" height={200} width={200} />
64+
<Image
65+
alt="Ade's avatar"
66+
bordered
67+
src="https://fabricweb.azureedge.net/fabric-website/assets/images/avatar/large/ade.jpg"
68+
height={200}
69+
width={200}
70+
/>
71+
<Image
72+
alt="Chris's avatar"
73+
bordered
74+
rounded
75+
src="https://fabricweb.azureedge.net/fabric-website/assets/images/avatar/large/chris.jpg"
76+
height={200}
77+
width={200}
78+
/>
79+
<Image
80+
alt="Laura's avatar"
81+
bordered
82+
circular
83+
src="https://fabricweb.azureedge.net/fabric-website/assets/images/avatar/large/laura.jpg"
84+
height={200}
85+
width={200}
86+
/>
3387
</Stack>
3488
</Stack>
3589
);
3690

3791
export const ImageVariationsFallback = () => (
3892
<Stack horizontal>
39-
<Image alt="Ade's avatar" bordered src="images/avatar/ade.jpg" height={200} width={200} />
40-
<Image alt="Non-existing avatar" bordered src="images/avatar/non-existing-png.jpg" height={200} width={200} />
93+
<Image
94+
alt="Ade's avatar"
95+
bordered
96+
src="https://fabricweb.azureedge.net/fabric-website/assets/images/avatar/large/ade.jpg"
97+
height={200}
98+
width={200}
99+
/>
100+
<Image
101+
alt="Non-existing avatar"
102+
bordered
103+
src="https://fabricweb.azureedge.net/fabric-website/assets/images/avatar/large/non-existing-png.jpg"
104+
height={200}
105+
width={200}
106+
/>
41107
</Stack>
42108
);
43109

-32.7 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)