Skip to content

Commit 23fdb01

Browse files
committed
Apply v12 Avatar migration on polaris.shopify.com
1 parent 84f006e commit 23fdb01

34 files changed

+34
-55
lines changed

polaris.shopify.com/pages/examples/action-list-with-a-prefix-and-a-suffix.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function ActionListWithPrefixSuffixExample() {
2222
},
2323
{
2424
content: 'Or there',
25-
prefix: <Avatar customer name="Farrah" size="small" />,
25+
prefix: <Avatar name="Farrah" size="large" />,
2626
suffix: <Icon source={ChevronRightMinor} />,
2727
},
2828
]}

polaris.shopify.com/pages/examples/app-provider-default.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function AppProviderExample() {
4949
]}
5050
renderItem={(item) => {
5151
const {id, url, name, location} = item;
52-
const media = <Avatar customer size="medium" name={name} />;
52+
const media = <Avatar size="xl" name={name} />;
5353

5454
return (
5555
<ResourceList.Item id={id} url={url} media={media}>

polaris.shopify.com/pages/examples/app-provider-with-i18n.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function AppProviderI18NExample() {
4949
]}
5050
renderItem={(item) => {
5151
const {id, url, name, location} = item;
52-
const media = <Avatar customer size="medium" name={name} />;
52+
const media = <Avatar size="xl" name={name} />;
5353

5454
return (
5555
<ResourceList.Item id={id} url={url} media={media}>

polaris.shopify.com/pages/examples/filters-disabled.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ function FiltersDisabledExample() {
101101
]}
102102
renderItem={(item) => {
103103
const {id, url, name, location} = item;
104-
const media = <Avatar customer size="medium" name={name} />;
104+
const media = <Avatar size="xl" name={name} />;
105105

106106
return (
107107
<ResourceList.Item

polaris.shopify.com/pages/examples/filters-with-a-resource-list.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ function FiltersWithAResourceListExample() {
177177
]}
178178
renderItem={(item) => {
179179
const {id, url, name, location} = item;
180-
const media = <Avatar customer size="medium" name={name} />;
180+
const media = <Avatar size="xl" name={name} />;
181181

182182
return (
183183
<ResourceList.Item

polaris.shopify.com/pages/examples/filters-with-children-content.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ function FiltersWithChildrenContentExample() {
105105
]}
106106
renderItem={(item) => {
107107
const {id, url, name, location} = item;
108-
const media = <Avatar customer size="medium" name={name} />;
108+
const media = <Avatar size="xl" name={name} />;
109109

110110
return (
111111
<ResourceList.Item

polaris.shopify.com/pages/examples/filters-with-query-field-disabled.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ function FiltersWithQueryFieldDisabledExample() {
178178
]}
179179
renderItem={(item) => {
180180
const {id, url, name, location} = item;
181-
const media = <Avatar customer size="medium" name={name} />;
181+
const media = <Avatar size="xl" name={name} />;
182182

183183
return (
184184
<ResourceList.Item

polaris.shopify.com/pages/examples/filters-with-query-field-hidden.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ function ResourceListFiltersExample() {
187187
]}
188188
renderItem={(item) => {
189189
const {id, url, name, location} = item;
190-
const media = <Avatar customer size="medium" name={name} />;
190+
const media = <Avatar size="xl" name={name} />;
191191

192192
return (
193193
<ResourceList.Item

polaris.shopify.com/pages/examples/filters-with-some-disabled.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ function FiltersWithSomeDisabledExample() {
124124
]}
125125
renderItem={(item) => {
126126
const {id, url, name, location} = item;
127-
const media = <Avatar customer size="medium" name={name} />;
127+
const media = <Avatar size="xl" name={name} />;
128128

129129
return (
130130
<ResourceList.Item

polaris.shopify.com/pages/examples/legacy-filters-disabled.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ function DisableAllFiltersExample() {
9898
]}
9999
renderItem={(item) => {
100100
const {id, url, name, location} = item;
101-
const media = <Avatar customer size="medium" name={name} />;
101+
const media = <Avatar size="xl" name={name} />;
102102

103103
return (
104104
<ResourceList.Item

0 commit comments

Comments
 (0)