Skip to content

Commit

Permalink
linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanschingeck committed Apr 26, 2024
1 parent 021d5e0 commit 58bfe63
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@ export function AppCardBadges({signifiers = []}: AppCardBadgesProps) {
const badges = [];

if (signifiers.includes(AppCardBadgeEnum.BuiltForShopify)) {
badges.push(<AppCardBadge key={AppCardBadgeEnum.BuiltForShopify} type={AppCardBadgeEnum.BuiltForShopify} />);
badges.push(
<AppCardBadge
key={AppCardBadgeEnum.BuiltForShopify}
type={AppCardBadgeEnum.BuiltForShopify}
/>,
);
}

return badges?.length ? (
Expand Down
1 change: 1 addition & 0 deletions polaris-react/src/components/AppIcon/AppIcon.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable no-alert */
import React from 'react';
import type {ComponentMeta} from '@storybook/react';

Expand Down
4 changes: 3 additions & 1 deletion polaris-react/src/components/AppIcon/tests/AppIcon.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ describe('<AppIcon />', () => {
});

it('renders with an icon source and onClick callback', () => {
const appIcon = mountWithApp(<AppIcon source={source} onClick={() => {}} />);
const appIcon = mountWithApp(
<AppIcon source={source} onClick={() => {}} />,
);

expect(appIcon).toContainReactComponent('div', {
role: 'link',
Expand Down

0 comments on commit 58bfe63

Please sign in to comment.