From 58bfe63774abdc16e76a3f66ed3267447076c26a Mon Sep 17 00:00:00 2001 From: Ryan Schingeck Date: Fri, 26 Apr 2024 17:15:46 +0000 Subject: [PATCH] linting errors --- .../components/AppCardBadges/AppCardBadges.tsx | 7 ++++++- polaris-react/src/components/AppIcon/AppIcon.stories.tsx | 1 + .../src/components/AppIcon/tests/AppIcon.test.tsx | 4 +++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/polaris-react/src/components/AppCardMetadata/components/AppCardBadges/AppCardBadges.tsx b/polaris-react/src/components/AppCardMetadata/components/AppCardBadges/AppCardBadges.tsx index c6aa577fe09..1aebf9765ba 100644 --- a/polaris-react/src/components/AppCardMetadata/components/AppCardBadges/AppCardBadges.tsx +++ b/polaris-react/src/components/AppCardMetadata/components/AppCardBadges/AppCardBadges.tsx @@ -12,7 +12,12 @@ export function AppCardBadges({signifiers = []}: AppCardBadgesProps) { const badges = []; if (signifiers.includes(AppCardBadgeEnum.BuiltForShopify)) { - badges.push(); + badges.push( + , + ); } return badges?.length ? ( diff --git a/polaris-react/src/components/AppIcon/AppIcon.stories.tsx b/polaris-react/src/components/AppIcon/AppIcon.stories.tsx index 1a6ffd4d6c4..11a62f84df2 100644 --- a/polaris-react/src/components/AppIcon/AppIcon.stories.tsx +++ b/polaris-react/src/components/AppIcon/AppIcon.stories.tsx @@ -1,3 +1,4 @@ +/* eslint-disable no-alert */ import React from 'react'; import type {ComponentMeta} from '@storybook/react'; diff --git a/polaris-react/src/components/AppIcon/tests/AppIcon.test.tsx b/polaris-react/src/components/AppIcon/tests/AppIcon.test.tsx index a7275129a1b..7886aaa7e3a 100644 --- a/polaris-react/src/components/AppIcon/tests/AppIcon.test.tsx +++ b/polaris-react/src/components/AppIcon/tests/AppIcon.test.tsx @@ -26,7 +26,9 @@ describe('', () => { }); it('renders with an icon source and onClick callback', () => { - const appIcon = mountWithApp( {}} />); + const appIcon = mountWithApp( + {}} />, + ); expect(appIcon).toContainReactComponent('div', { role: 'link',