From cb57456cfcdf5e063267d2ef6c833a05fdc8b996 Mon Sep 17 00:00:00 2001 From: Binij Shrestha Date: Thu, 18 May 2023 17:31:31 +0545 Subject: [PATCH] linted --- .../component-library/avatar-icon/avatar-icon.test.tsx | 10 +--------- .../component-library/avatar-icon/avatar-icon.types.ts | 3 ++- ui/components/ui/box/box.d.ts | 1 - 3 files changed, 3 insertions(+), 11 deletions(-) diff --git a/ui/components/component-library/avatar-icon/avatar-icon.test.tsx b/ui/components/component-library/avatar-icon/avatar-icon.test.tsx index 9f92f3a00fc8..4a4d039976c4 100644 --- a/ui/components/component-library/avatar-icon/avatar-icon.test.tsx +++ b/ui/components/component-library/avatar-icon/avatar-icon.test.tsx @@ -38,19 +38,16 @@ describe('AvatarIcon', () => { iconName={IconName.SwapHorizontal} size={AvatarIconSize.Md} data-testid={AvatarIconSize.Md} - /> , ); @@ -110,12 +107,7 @@ describe('AvatarIcon', () => { }); it('should forward a ref to the root html element', () => { const ref = React.createRef(); - render( - , - ); + render(); expect(ref.current).not.toBeNull(); if (ref.current) { expect(ref.current.nodeName).toBe('DIV'); diff --git a/ui/components/component-library/avatar-icon/avatar-icon.types.ts b/ui/components/component-library/avatar-icon/avatar-icon.types.ts index 1bf677686288..2724b77808fb 100644 --- a/ui/components/component-library/avatar-icon/avatar-icon.types.ts +++ b/ui/components/component-library/avatar-icon/avatar-icon.types.ts @@ -10,7 +10,8 @@ export enum AvatarIconSize { Xl = 'xl', } -export interface AvatarIconProps extends Omit { +export interface AvatarIconProps + extends Omit { /** * The name of the icon to display. Should be one of IconName */ diff --git a/ui/components/ui/box/box.d.ts b/ui/components/ui/box/box.d.ts index a75931ddd756..c91004b52b85 100644 --- a/ui/components/ui/box/box.d.ts +++ b/ui/components/ui/box/box.d.ts @@ -14,7 +14,6 @@ import { JustifyContent, FLEX_DIRECTION, FlexWrap, - FLEX_WRAP, BorderRadius, } from '../../../helpers/constants/design-system';