From 1d73752c03ca2d45ad55ddbff454722d25805b5e Mon Sep 17 00:00:00 2001 From: Binij Shrestha Date: Wed, 24 May 2023 16:27:11 +0545 Subject: [PATCH] replace deprecated --- .../avatar-icon/avatar-icon.stories.tsx | 22 +++++++++---------- .../avatar-icon/avatar-icon.tsx | 4 ++-- 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/ui/components/component-library/avatar-icon/avatar-icon.stories.tsx b/ui/components/component-library/avatar-icon/avatar-icon.stories.tsx index 23d7c15bf527..4873c8995741 100644 --- a/ui/components/component-library/avatar-icon/avatar-icon.stories.tsx +++ b/ui/components/component-library/avatar-icon/avatar-icon.stories.tsx @@ -1,7 +1,7 @@ import React from 'react'; -import { ComponentStory, ComponentMeta } from '@storybook/react'; +import { StoryFn, Meta } from '@storybook/react'; import { - DISPLAY, + Display, AlignItems, BackgroundColor, IconColor, @@ -85,17 +85,17 @@ export default { args: { size: AvatarIconSize.Md, }, -} as ComponentMeta; +} as Meta; -const Template: ComponentStory = (args) => { +const Template: StoryFn = (args) => { return ; }; export const DefaultStory = Template.bind({}); DefaultStory.storyName = 'Default'; -export const SizeStory: ComponentStory = (args) => ( - +export const SizeStory: StoryFn = (args) => ( + @@ -109,8 +109,8 @@ SizeStory.args = { iconName: IconName.Confirmation, }; -export const IconNameStory: ComponentStory = (args) => ( - +export const IconNameStory: StoryFn = (args) => ( + = (args) => ( IconNameStory.storyName = 'Icon Name'; -export const ColorAndBackgroundColor: ComponentStory = ( - args, -) => ( - +export const ColorAndBackgroundColor: StoryFn = (args) => ( +