diff --git a/components/avatar/__tests__/Avatar.test.tsx b/components/avatar/__tests__/Avatar.test.tsx index e07ac6bbb2c7..0ff9be3b89ec 100644 --- a/components/avatar/__tests__/Avatar.test.tsx +++ b/components/avatar/__tests__/Avatar.test.tsx @@ -53,7 +53,7 @@ describe('Avatar Render', () => { it('should handle onError correctly', () => { const LOAD_FAILURE_SRC = 'http://error.url/'; - const LOAD_SUCCESS_SRC = 'https://joesch.moe/api/v1/random'; + const LOAD_SUCCESS_SRC = 'https://xsgames.co/randomusers/avatar.php?g=pixel'; const Foo: React.FC = () => { const [avatarSrc, setAvatarSrc] = useState( LOAD_FAILURE_SRC, @@ -75,7 +75,7 @@ describe('Avatar Render', () => { it('should show image on success after a failure state', () => { const LOAD_FAILURE_SRC = 'http://error.url'; - const LOAD_SUCCESS_SRC = 'https://joesch.moe/api/v1/random'; + const LOAD_SUCCESS_SRC = 'https://xsgames.co/randomusers/avatar.php?g=pixel'; const div = global.document.createElement('div'); global.document.body.appendChild(div); @@ -172,7 +172,7 @@ describe('Avatar Render', () => { }); it('should exist crossorigin attribute', () => { - const LOAD_SUCCESS_SRC = 'https://joesch.moe/api/v1/random'; + const LOAD_SUCCESS_SRC = 'https://xsgames.co/randomusers/avatar.php?g=pixel'; const crossOrigin = 'anonymous'; const { container } = render( @@ -184,7 +184,7 @@ describe('Avatar Render', () => { }); it('should not exist crossorigin attribute', () => { - const LOAD_SUCCESS_SRC = 'https://joesch.moe/api/v1/random'; + const LOAD_SUCCESS_SRC = 'https://xsgames.co/randomusers/avatar.php?g=pixel'; const { container } = render(crossorigin); expect(container.querySelector('img')?.crossOrigin).toBeFalsy(); expect(container.querySelector('img')?.crossOrigin).toEqual(''); diff --git a/components/avatar/__tests__/__snapshots__/Avatar.test.tsx.snap b/components/avatar/__tests__/__snapshots__/Avatar.test.tsx.snap index bc692839d41e..a07848455ede 100644 --- a/components/avatar/__tests__/__snapshots__/Avatar.test.tsx.snap +++ b/components/avatar/__tests__/__snapshots__/Avatar.test.tsx.snap @@ -140,7 +140,7 @@ exports[`Avatar Render should handle onError correctly 1`] = ` class="ant-avatar ant-avatar-circle ant-avatar-image" > `; @@ -163,7 +163,7 @@ exports[`Avatar Render should show image on success after a failure state 2`] = class="ant-avatar ant-avatar-circle ant-avatar-image" > `; diff --git a/components/avatar/__tests__/__snapshots__/demo-extend.test.ts.snap b/components/avatar/__tests__/__snapshots__/demo-extend.test.ts.snap index 670ac3ac34d6..47fdac09f630 100644 --- a/components/avatar/__tests__/__snapshots__/demo-extend.test.ts.snap +++ b/components/avatar/__tests__/__snapshots__/demo-extend.test.ts.snap @@ -415,7 +415,7 @@ Array [ class="ant-avatar ant-avatar-circle ant-avatar-image" > ( <> - + K @@ -16,7 +16,7 @@ const App: React.FC = () => ( - + K } /> @@ -29,7 +29,7 @@ const App: React.FC = () => ( size="large" maxStyle={{ color: '#f56a00', backgroundColor: '#fde3cf' }} > - + K } /> diff --git a/components/card/__tests__/__snapshots__/demo-extend.test.ts.snap b/components/card/__tests__/__snapshots__/demo-extend.test.ts.snap index aed17f7f1cba..60bdaa15b279 100644 --- a/components/card/__tests__/__snapshots__/demo-extend.test.ts.snap +++ b/components/card/__tests__/__snapshots__/demo-extend.test.ts.snap @@ -601,7 +601,7 @@ exports[`renders components/card/demo/meta.tsx extend context correctly 1`] = ` class="ant-avatar ant-avatar-circle ant-avatar-image" > diff --git a/components/card/__tests__/__snapshots__/demo.test.ts.snap b/components/card/__tests__/__snapshots__/demo.test.ts.snap index 7aca6084c94a..189098480a38 100644 --- a/components/card/__tests__/__snapshots__/demo.test.ts.snap +++ b/components/card/__tests__/__snapshots__/demo.test.ts.snap @@ -601,7 +601,7 @@ exports[`renders components/card/demo/meta.tsx correctly 1`] = ` class="ant-avatar ant-avatar-circle ant-avatar-image" > diff --git a/components/card/demo/loading.tsx b/components/card/demo/loading.tsx index 7bd6ae8b40c6..c73b67197dd6 100644 --- a/components/card/demo/loading.tsx +++ b/components/card/demo/loading.tsx @@ -16,7 +16,7 @@ const App: React.FC = () => { } + avatar={} title="Card title" description="This is the description" /> @@ -31,7 +31,7 @@ const App: React.FC = () => { > } + avatar={} title="Card title" description="This is the description" /> diff --git a/components/card/demo/meta.tsx b/components/card/demo/meta.tsx index e2628041e5b6..0f61cf368f66 100644 --- a/components/card/demo/meta.tsx +++ b/components/card/demo/meta.tsx @@ -1,6 +1,6 @@ import React from 'react'; -import { EditOutlined,EllipsisOutlined,SettingOutlined } from '@ant-design/icons'; -import { Avatar,Card } from 'antd'; +import { EditOutlined, EllipsisOutlined, SettingOutlined } from '@ant-design/icons'; +import { Avatar, Card } from 'antd'; const { Meta } = Card; @@ -20,7 +20,7 @@ const App: React.FC = () => ( ]} > } + avatar={} title="Card title" description="This is the description" /> diff --git a/components/config-provider/__tests__/__snapshots__/components.test.tsx.snap b/components/config-provider/__tests__/__snapshots__/components.test.tsx.snap index 59cf812dc9af..cd9196fe5e69 100644 --- a/components/config-provider/__tests__/__snapshots__/components.test.tsx.snap +++ b/components/config-provider/__tests__/__snapshots__/components.test.tsx.snap @@ -17322,7 +17322,7 @@ exports[`ConfigProvider components List configProvider 1`] = ` class="config-avatar config-avatar-circle config-avatar-image" > @@ -17374,7 +17374,7 @@ exports[`ConfigProvider components List configProvider componentDisabled 1`] = ` class="config-avatar config-avatar-circle config-avatar-image" > @@ -17426,7 +17426,7 @@ exports[`ConfigProvider components List configProvider componentSize large 1`] = class="config-avatar config-avatar-circle config-avatar-image" > @@ -17478,7 +17478,7 @@ exports[`ConfigProvider components List configProvider componentSize middle 1`] class="config-avatar config-avatar-circle config-avatar-image" > @@ -17530,7 +17530,7 @@ exports[`ConfigProvider components List configProvider virtual and dropdownMatch class="ant-avatar ant-avatar-circle ant-avatar-image" > @@ -17582,7 +17582,7 @@ exports[`ConfigProvider components List normal 1`] = ` class="ant-avatar ant-avatar-circle ant-avatar-image" > @@ -17634,7 +17634,7 @@ exports[`ConfigProvider components List prefixCls 1`] = ` class="ant-avatar ant-avatar-circle ant-avatar-image" > diff --git a/components/config-provider/__tests__/components.test.tsx b/components/config-provider/__tests__/components.test.tsx index 173a7e7b4059..63017b6fcbcb 100644 --- a/components/config-provider/__tests__/components.test.tsx +++ b/components/config-provider/__tests__/components.test.tsx @@ -351,7 +351,7 @@ describe('ConfigProvider', () => { } + avatar={} title="Ant Design" description="Ant Design, a design language for background applications, is refined by Ant UED Team" /> diff --git a/components/list/__tests__/Item.test.tsx b/components/list/__tests__/Item.test.tsx index 6330c0166df9..0c87bc8faba5 100644 --- a/components/list/__tests__/Item.test.tsx +++ b/components/list/__tests__/Item.test.tsx @@ -9,7 +9,7 @@ describe('List Item Layout', () => { key: 1, href: 'https://ant.design', title: 'ant design', - avatar: 'https://joesch.moe/api/v1/random', + avatar: 'https://xsgames.co/randomusers/avatar.php?g=pixel', description: 'Ant Design, a design language for background applications, is refined by Ant UED Team.', content: diff --git a/components/list/__tests__/__snapshots__/demo-extend.test.ts.snap b/components/list/__tests__/__snapshots__/demo-extend.test.ts.snap index 0d52adf94c77..7b0695c85689 100644 --- a/components/list/__tests__/__snapshots__/demo-extend.test.ts.snap +++ b/components/list/__tests__/__snapshots__/demo-extend.test.ts.snap @@ -26,7 +26,7 @@ exports[`renders components/list/demo/basic.tsx extend context correctly 1`] = ` class="ant-avatar ant-avatar-circle ant-avatar-image" > @@ -63,7 +63,7 @@ exports[`renders components/list/demo/basic.tsx extend context correctly 1`] = ` class="ant-avatar ant-avatar-circle ant-avatar-image" > @@ -100,7 +100,7 @@ exports[`renders components/list/demo/basic.tsx extend context correctly 1`] = ` class="ant-avatar ant-avatar-circle ant-avatar-image" > @@ -137,7 +137,7 @@ exports[`renders components/list/demo/basic.tsx extend context correctly 1`] = ` class="ant-avatar ant-avatar-circle ant-avatar-image" > @@ -1360,7 +1360,7 @@ Array [ class="ant-avatar ant-avatar-circle ant-avatar-image" > @@ -1397,7 +1397,7 @@ Array [ class="ant-avatar ant-avatar-circle ant-avatar-image" > @@ -1434,7 +1434,7 @@ Array [ class="ant-avatar ant-avatar-circle ant-avatar-image" > @@ -1471,7 +1471,7 @@ Array [ class="ant-avatar ant-avatar-circle ant-avatar-image" > @@ -2079,7 +2079,7 @@ exports[`renders components/list/demo/vertical.tsx extend context correctly 1`] class="ant-avatar ant-avatar-circle ant-avatar-image" > @@ -2245,7 +2245,7 @@ exports[`renders components/list/demo/vertical.tsx extend context correctly 1`] class="ant-avatar ant-avatar-circle ant-avatar-image" > @@ -2411,7 +2411,7 @@ exports[`renders components/list/demo/vertical.tsx extend context correctly 1`] class="ant-avatar ant-avatar-circle ant-avatar-image" > diff --git a/components/list/__tests__/__snapshots__/demo.test.ts.snap b/components/list/__tests__/__snapshots__/demo.test.ts.snap index 117a01e608d9..d4e9382cc3df 100644 --- a/components/list/__tests__/__snapshots__/demo.test.ts.snap +++ b/components/list/__tests__/__snapshots__/demo.test.ts.snap @@ -26,7 +26,7 @@ exports[`renders components/list/demo/basic.tsx correctly 1`] = ` class="ant-avatar ant-avatar-circle ant-avatar-image" > @@ -63,7 +63,7 @@ exports[`renders components/list/demo/basic.tsx correctly 1`] = ` class="ant-avatar ant-avatar-circle ant-avatar-image" > @@ -100,7 +100,7 @@ exports[`renders components/list/demo/basic.tsx correctly 1`] = ` class="ant-avatar ant-avatar-circle ant-avatar-image" > @@ -137,7 +137,7 @@ exports[`renders components/list/demo/basic.tsx correctly 1`] = ` class="ant-avatar ant-avatar-circle ant-avatar-image" > @@ -1360,7 +1360,7 @@ Array [ class="ant-avatar ant-avatar-circle ant-avatar-image" > @@ -1397,7 +1397,7 @@ Array [ class="ant-avatar ant-avatar-circle ant-avatar-image" > @@ -1434,7 +1434,7 @@ Array [ class="ant-avatar ant-avatar-circle ant-avatar-image" > @@ -1471,7 +1471,7 @@ Array [ class="ant-avatar ant-avatar-circle ant-avatar-image" > @@ -2072,7 +2072,7 @@ exports[`renders components/list/demo/vertical.tsx correctly 1`] = ` class="ant-avatar ant-avatar-circle ant-avatar-image" > @@ -2238,7 +2238,7 @@ exports[`renders components/list/demo/vertical.tsx correctly 1`] = ` class="ant-avatar ant-avatar-circle ant-avatar-image" > @@ -2404,7 +2404,7 @@ exports[`renders components/list/demo/vertical.tsx correctly 1`] = ` class="ant-avatar ant-avatar-circle ant-avatar-image" > diff --git a/components/list/demo/basic.tsx b/components/list/demo/basic.tsx index c4a57e0fc74f..ac7ea9519b3b 100644 --- a/components/list/demo/basic.tsx +++ b/components/list/demo/basic.tsx @@ -23,7 +23,7 @@ const App: React.FC = () => ( renderItem={(item, index) => ( } + avatar={} title={{item.title}} description="Ant Design, a design language for background applications, is refined by Ant UED Team" /> diff --git a/components/list/demo/pagination.tsx b/components/list/demo/pagination.tsx index 6b9740cedcb4..2040de7ea493 100644 --- a/components/list/demo/pagination.tsx +++ b/components/list/demo/pagination.tsx @@ -70,7 +70,9 @@ const App: React.FC = () => { renderItem={(item, index) => ( } + avatar={ + + } title={{item.title}} description="Ant Design, a design language for background applications, is refined by Ant UED Team" /> diff --git a/components/list/demo/vertical.tsx b/components/list/demo/vertical.tsx index e0e91bcfd393..6236c7cf360f 100644 --- a/components/list/demo/vertical.tsx +++ b/components/list/demo/vertical.tsx @@ -5,7 +5,7 @@ import React from 'react'; const data = Array.from({ length: 23 }).map((_, i) => ({ href: 'https://ant.design', title: `ant design part ${i}`, - avatar: `https://joesch.moe/api/v1/random?key=${i}`, + avatar: `https://xsgames.co/randomusers/avatar.php?g=pixel&key=${i}`, description: 'Ant Design, a design language for background applications, is refined by Ant UED Team.', content: diff --git a/components/segmented/__tests__/__snapshots__/demo-extend.test.ts.snap b/components/segmented/__tests__/__snapshots__/demo-extend.test.ts.snap index 486276e316d9..992d80d6daaf 100644 --- a/components/segmented/__tests__/__snapshots__/demo-extend.test.ts.snap +++ b/components/segmented/__tests__/__snapshots__/demo-extend.test.ts.snap @@ -330,7 +330,7 @@ exports[`renders components/segmented/demo/custom.tsx extend context correctly 1 class="ant-avatar ant-avatar-circle ant-avatar-image" >
diff --git a/components/segmented/__tests__/__snapshots__/demo.test.ts.snap b/components/segmented/__tests__/__snapshots__/demo.test.ts.snap index 30d9b7deb471..245d41fcc841 100644 --- a/components/segmented/__tests__/__snapshots__/demo.test.ts.snap +++ b/components/segmented/__tests__/__snapshots__/demo.test.ts.snap @@ -330,7 +330,7 @@ exports[`renders components/segmented/demo/custom.tsx correctly 1`] = ` class="ant-avatar ant-avatar-circle ant-avatar-image" >
diff --git a/components/segmented/demo/custom.tsx b/components/segmented/demo/custom.tsx index 4ccba1917458..a55e9518b1ef 100644 --- a/components/segmented/demo/custom.tsx +++ b/components/segmented/demo/custom.tsx @@ -9,7 +9,7 @@ const App: React.FC = () => ( { label: (
- +
User 1
), diff --git a/components/skeleton/demo/list.tsx b/components/skeleton/demo/list.tsx index 8bf4bde336c8..9660db215c3b 100644 --- a/components/skeleton/demo/list.tsx +++ b/components/skeleton/demo/list.tsx @@ -11,7 +11,7 @@ interface IconTextProps { const listData = Array.from({ length: 3 }).map((_, i) => ({ href: 'https://ant.design', title: `ant design part ${i + 1}`, - avatar: `https://joesch.moe/api/v1/random?key=${i}`, + avatar: `https://xsgames.co/randomusers/avatar.php?g=pixel&key=${i}`, description: 'Ant Design, a design language for background applications, is refined by Ant UED Team.', content: diff --git a/components/steps/__tests__/__snapshots__/demo-extend.test.ts.snap b/components/steps/__tests__/__snapshots__/demo-extend.test.ts.snap index dcbe167cf72d..18d1c1442d91 100644 --- a/components/steps/__tests__/__snapshots__/demo-extend.test.ts.snap +++ b/components/steps/__tests__/__snapshots__/demo-extend.test.ts.snap @@ -851,7 +851,7 @@ exports[`renders components/steps/demo/inline.tsx extend context correctly 1`] = class="ant-avatar ant-avatar-circle ant-avatar-image" >
@@ -1058,7 +1058,7 @@ exports[`renders components/steps/demo/inline.tsx extend context correctly 1`] = class="ant-avatar ant-avatar-circle ant-avatar-image" >
@@ -1265,7 +1265,7 @@ exports[`renders components/steps/demo/inline.tsx extend context correctly 1`] = class="ant-avatar ant-avatar-circle ant-avatar-image" > @@ -1472,7 +1472,7 @@ exports[`renders components/steps/demo/inline.tsx extend context correctly 1`] = class="ant-avatar ant-avatar-circle ant-avatar-image" > diff --git a/components/steps/__tests__/__snapshots__/demo.test.ts.snap b/components/steps/__tests__/__snapshots__/demo.test.ts.snap index 5ee1df9f409e..bdf5074caf9c 100644 --- a/components/steps/__tests__/__snapshots__/demo.test.ts.snap +++ b/components/steps/__tests__/__snapshots__/demo.test.ts.snap @@ -751,7 +751,7 @@ exports[`renders components/steps/demo/inline.tsx correctly 1`] = ` class="ant-avatar ant-avatar-circle ant-avatar-image" > @@ -901,7 +901,7 @@ exports[`renders components/steps/demo/inline.tsx correctly 1`] = ` class="ant-avatar ant-avatar-circle ant-avatar-image" > @@ -1051,7 +1051,7 @@ exports[`renders components/steps/demo/inline.tsx correctly 1`] = ` class="ant-avatar ant-avatar-circle ant-avatar-image" > @@ -1201,7 +1201,7 @@ exports[`renders components/steps/demo/inline.tsx correctly 1`] = ` class="ant-avatar ant-avatar-circle ant-avatar-image" > diff --git a/components/steps/demo/inline.tsx b/components/steps/demo/inline.tsx index 76be63ff3068..027897f549a6 100644 --- a/components/steps/demo/inline.tsx +++ b/components/steps/demo/inline.tsx @@ -45,7 +45,9 @@ const App: React.FC = () => ( renderItem={(item, index) => ( } + avatar={ + + } title={{item.title}} description="Ant Design, a design language for background applications, is refined by Ant UED Team" />