From 3e8c6f40a9b0c53868075433c029a1f59bbc71c1 Mon Sep 17 00:00:00 2001 From: ClaudiaHolhos Date: Tue, 31 May 2022 11:48:42 +0300 Subject: [PATCH] fixes --- .../@shared/ExplorerLink/index.stories.tsx | 4 ++-- .../@shared/FileIcon/index.stories.tsx | 18 +++++++++++++++--- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/src/components/@shared/ExplorerLink/index.stories.tsx b/src/components/@shared/ExplorerLink/index.stories.tsx index bc9fac389..78b017ee0 100644 --- a/src/components/@shared/ExplorerLink/index.stories.tsx +++ b/src/components/@shared/ExplorerLink/index.stories.tsx @@ -18,6 +18,6 @@ interface Props { export const Default: Props = Template.bind({}) Default.args = { networkId: 1287, - path: 'https://example.com', - children:

Explorer link

+ path: 'https://rinkeby.etherscan.io/token/0xfE5E734F529axxxxxxxxaD38Fce76A56B0d4347C', + children: 'Explorer link' } diff --git a/src/components/@shared/FileIcon/index.stories.tsx b/src/components/@shared/FileIcon/index.stories.tsx index 4c543125b..8d18991db 100644 --- a/src/components/@shared/FileIcon/index.stories.tsx +++ b/src/components/@shared/FileIcon/index.stories.tsx @@ -16,8 +16,8 @@ interface Props { args: FileIconProps } -const file = { - contentLength: '0', +const textFile = { + contentLength: '750', contentType: 'text/html', index: 0, valid: true @@ -25,5 +25,17 @@ const file = { export const Default: Props = Template.bind({}) Default.args = { - file: file as FileMetadata + file: textFile as FileMetadata +} + +export const Small: Props = Template.bind({}) +Small.args = { + file: textFile as FileMetadata, + small: true +} + +export const IsLoading: Props = Template.bind({}) +IsLoading.args = { + file: textFile as FileMetadata, + isLoading: true }