From fd3f98c7648d257be5bb2d7dc1d2f79a2c6753a8 Mon Sep 17 00:00:00 2001 From: Dhruv Parmar Date: Mon, 5 Jun 2023 22:47:56 +0530 Subject: [PATCH 1/3] Creating story for asset-list component --- .../app/asset-list/asset-list.stories.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 ui/components/app/asset-list/asset-list.stories.js diff --git a/ui/components/app/asset-list/asset-list.stories.js b/ui/components/app/asset-list/asset-list.stories.js new file mode 100644 index 000000000000..da6438478664 --- /dev/null +++ b/ui/components/app/asset-list/asset-list.stories.js @@ -0,0 +1,19 @@ +import React from 'react'; +import AssetList from '.'; + +export default { + title: 'Components/App/AssetList', + + argTypes: { + onClickAsset: { + control: 'onClickAsset', + }, + }, + args: { + onClickAsset: () => console.log('onClickAsset fired') + }, +}; + +export const DefaultStory = (args) => ; + +DefaultStory.storyName = 'Default'; From 67fbe7162c7217115b67104daeb6af3a442794ed Mon Sep 17 00:00:00 2001 From: Dhruv Parmar Date: Mon, 5 Jun 2023 23:22:34 +0530 Subject: [PATCH 2/3] lint fix --- ui/components/app/asset-list/asset-list.stories.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/components/app/asset-list/asset-list.stories.js b/ui/components/app/asset-list/asset-list.stories.js index da6438478664..d99dddf89225 100644 --- a/ui/components/app/asset-list/asset-list.stories.js +++ b/ui/components/app/asset-list/asset-list.stories.js @@ -10,7 +10,7 @@ export default { }, }, args: { - onClickAsset: () => console.log('onClickAsset fired') + onClickAsset: () => console.log('onClickAsset fired'), }, }; From 7b28523ee8627df00a2ce67bd9b9310b54613aed Mon Sep 17 00:00:00 2001 From: Dhruv Parmar Date: Mon, 5 Jun 2023 23:23:56 +0530 Subject: [PATCH 3/3] lint-fix --- ui/components/app/asset-list/asset-list.stories.js | 1 - 1 file changed, 1 deletion(-) diff --git a/ui/components/app/asset-list/asset-list.stories.js b/ui/components/app/asset-list/asset-list.stories.js index d99dddf89225..0234445f39ae 100644 --- a/ui/components/app/asset-list/asset-list.stories.js +++ b/ui/components/app/asset-list/asset-list.stories.js @@ -3,7 +3,6 @@ import AssetList from '.'; export default { title: 'Components/App/AssetList', - argTypes: { onClickAsset: { control: 'onClickAsset',