From a709ab66927f8ff4487da868821029f524cd68aa Mon Sep 17 00:00:00 2001 From: puriphatt Date: Thu, 26 Dec 2024 13:07:19 +0700 Subject: [PATCH] feat: clear default avatar data in AvatarGroup component --- src/components/shared/AvatarGroup.vue | 33 +-------------------------- 1 file changed, 1 insertion(+), 32 deletions(-) diff --git a/src/components/shared/AvatarGroup.vue b/src/components/shared/AvatarGroup.vue index a37dfb78..a3f3d85e 100644 --- a/src/components/shared/AvatarGroup.vue +++ b/src/components/shared/AvatarGroup.vue @@ -8,38 +8,7 @@ withDefaults( { dataLabel: 'name', dataUrl: 'imgUrl', - data: () => [ - { - name: 'Someone 1', - imgUrl: - 'https://images.unsplash.com/photo-1438761681033-6461ffad8d80?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxzZWFyY2h8Mnx8cGVyc29ufGVufDB8fDB8fA%3D%3D&auto=format&fit=crop&w=500&q=60', - }, - { - name: 'Someone 2', - imgUrl: - 'https://images.unsplash.com/flagged/photo-1570612861542-284f4c12e75f?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxzZWFyY2h8M3x8cGVyc29ufGVufDB8fDB8fA%3D%3D&auto=format&fit=crop&w=500&q=60', - }, - { - name: 'Someone 3', - imgUrl: - 'https://images.unsplash.com/photo-1547425260-76bcadfb4f2c?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxzZWFyY2h8NXx8cGVyc29ufGVufDB8fDB8fA%3D%3D&auto=format&fit=crop&w=500&q=60', - }, - { - name: 'Someone 4', - imgUrl: - 'https://images.unsplash.com/photo-1499952127939-9bbf5af6c51c?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxzZWFyY2h8MTF8fHBlcnNvbnxlbnwwfHwwfHw%3D&auto=format&fit=crop&w=500&q=60', - }, - { - name: 'Someone 5', - imgUrl: - 'https://images.unsplash.com/photo-1504593811423-6dd665756598?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxzZWFyY2h8MTZ8fHBlcnNvbnxlbnwwfHwwfHw%3D&auto=format&fit=crop&w=500&q=60', - }, - { - name: 'Someone 6', - imgUrl: - 'https://images.unsplash.com/photo-1504593811423-6dd665756598?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxzZWFyY2h8MTZ8fHBlcnNvbnxlbnwwfHwwfHw%3D&auto=format&fit=crop&w=500&q=60', - }, - ], + data: () => [], }, );