From 3a447f370ae4f8aac0b6cb39812e0fa59eb09d16 Mon Sep 17 00:00:00 2001 From: sachdeva-shrey Date: Wed, 10 Mar 2021 22:49:26 +0530 Subject: [PATCH 1/2] fix: update props of avatar component Signed-off-by: sachdeva-shrey --- src/content/Avatar/avatar.playground.jsx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/content/Avatar/avatar.playground.jsx b/src/content/Avatar/avatar.playground.jsx index b6da799..dee3326 100644 --- a/src/content/Avatar/avatar.playground.jsx +++ b/src/content/Avatar/avatar.playground.jsx @@ -16,7 +16,7 @@ const AvatarPlay = () => { type: PropTypes.Object, }, containerStyle: { - value: `{}`, + value: `{ backgroundColor: '#BDBDBD' }`, type: PropTypes.Object, }, // icon @@ -28,11 +28,6 @@ const AvatarPlay = () => { value: `{}`, type: PropTypes.Object, }, - onAccessoryPress: { - value: `()=>alert('onAccessoryPress')`, - type: PropTypes.Function, - }, - onLongPress: { value: `()=>alert('onLongPress')`, type: PropTypes.Function, From 767a685d37378f18a335ed26a68921aaaf828593 Mon Sep 17 00:00:00 2001 From: sachdeva-shrey Date: Wed, 10 Mar 2021 23:08:08 +0530 Subject: [PATCH 2/2] fix: remove showAccessory prop Signed-off-by: sachdeva-shrey --- src/content/Avatar/avatar.playground.jsx | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/content/Avatar/avatar.playground.jsx b/src/content/Avatar/avatar.playground.jsx index dee3326..273ca6e 100644 --- a/src/content/Avatar/avatar.playground.jsx +++ b/src/content/Avatar/avatar.playground.jsx @@ -50,12 +50,6 @@ const AvatarPlay = () => { type: PropTypes.Boolean, description: "Indicates that the button is disabled", }, - showAccessory: { - value: true, - type: PropTypes.Boolean, - description: "Indicates that the button is disabled", - }, - size: { value: "large", options: {