Skip to content

Commit

Permalink
linted
Browse files Browse the repository at this point in the history
  • Loading branch information
thebinij committed May 18, 2023
1 parent 3fb848a commit cb57456
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,16 @@ describe('AvatarIcon', () => {
iconName={IconName.SwapHorizontal}
size={AvatarIconSize.Md}
data-testid={AvatarIconSize.Md}

/>
<AvatarIcon
iconName={IconName.SwapHorizontal}
size={AvatarIconSize.Lg}
data-testid={AvatarIconSize.Lg}

/>
<AvatarIcon
iconName={IconName.SwapHorizontal}
size={AvatarIconSize.Xl}
data-testid={AvatarIconSize.Xl}

/>
</>,
);
Expand Down Expand Up @@ -110,12 +107,7 @@ describe('AvatarIcon', () => {
});
it('should forward a ref to the root html element', () => {
const ref = React.createRef<HTMLDivElement>();
render(
<AvatarIcon
iconName={IconName.SwapHorizontal}
ref={ref}
/>,
);
render(<AvatarIcon iconName={IconName.SwapHorizontal} ref={ref} />);
expect(ref.current).not.toBeNull();
if (ref.current) {
expect(ref.current.nodeName).toBe('DIV');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ export enum AvatarIconSize {
Xl = 'xl',
}

export interface AvatarIconProps extends Omit<AvatarBaseProps, 'color'| 'children'> {
export interface AvatarIconProps
extends Omit<AvatarBaseProps, 'color' | 'children'> {
/**
* The name of the icon to display. Should be one of IconName
*/
Expand Down
1 change: 0 additions & 1 deletion ui/components/ui/box/box.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import {
JustifyContent,
FLEX_DIRECTION,
FlexWrap,
FLEX_WRAP,
BorderRadius,
} from '../../../helpers/constants/design-system';

Expand Down

0 comments on commit cb57456

Please sign in to comment.