Skip to content

Commit

Permalink
chore: remove multiple displayName assignments per file (#1241)
Browse files Browse the repository at this point in the history
  • Loading branch information
jzempel committed Nov 9, 2021
1 parent a82c908 commit 5bcf7f6
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 14 deletions.
16 changes: 8 additions & 8 deletions packages/dropdowns/.size-snapshot.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{
"index.cjs.js": {
"bundled": 90048,
"minified": 55064,
"gzipped": 11698
"bundled": 89883,
"minified": 54896,
"gzipped": 11678
},
"index.esm.js": {
"bundled": 83647,
"minified": 49596,
"gzipped": 11348,
"bundled": 83482,
"minified": 49428,
"gzipped": 11327,
"treeshaked": {
"rollup": {
"code": 37491,
"code": 37371,
"import_statements": 824
},
"webpack": {
"code": 43906
"code": 43786
}
}
}
Expand Down
3 changes: 1 addition & 2 deletions packages/dropdowns/src/elements/Menu/Items/AddItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { Item, IItemProps } from './Item';
import { StyledAddItem, StyledItemIcon } from '../../../styled';
import useMenuContext from '../../../utils/useMenuContext';

// eslint-disable-next-line react/display-name
const AddItemComponent = React.forwardRef<HTMLLIElement, IItemProps>(
({ children, disabled, ...props }, ref) => {
const { isCompact } = useMenuContext();
Expand All @@ -27,8 +28,6 @@ const AddItemComponent = React.forwardRef<HTMLLIElement, IItemProps>(
}
);

AddItemComponent.displayName = 'AddItemComponent';

/**
* @extends LiHTMLAttributes<HTMLLIElement>
*/
Expand Down
3 changes: 1 addition & 2 deletions packages/dropdowns/src/elements/Menu/Items/NextItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { StyledNextItem, StyledItemIcon, StyledNextIcon } from '../../../styled'
import useDropdownContext from '../../../utils/useDropdownContext';
import useMenuContext from '../../../utils/useMenuContext';

// eslint-disable-next-line react/display-name
const NextItemComponent = React.forwardRef<HTMLLIElement, IItemProps>(
({ children, disabled, ...props }, ref) => {
const { isCompact } = useMenuContext();
Expand All @@ -28,8 +29,6 @@ const NextItemComponent = React.forwardRef<HTMLLIElement, IItemProps>(
}
);

NextItemComponent.displayName = 'NextItemComponent';

/**
* @extends LiHTMLAttributes<HTMLLIElement>
*/
Expand Down
3 changes: 1 addition & 2 deletions packages/dropdowns/src/elements/Menu/Items/PreviousItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { StyledPreviousItem, StyledItemIcon, StyledPreviousIcon } from '../../..
import useDropdownContext from '../../../utils/useDropdownContext';
import useMenuContext from '../../../utils/useMenuContext';

// eslint-disable-next-line react/display-name
const PreviousItemComponent = React.forwardRef<HTMLLIElement, IItemProps>(
({ children, disabled, ...props }, ref) => {
const { isCompact } = useMenuContext();
Expand All @@ -28,8 +29,6 @@ const PreviousItemComponent = React.forwardRef<HTMLLIElement, IItemProps>(
}
);

PreviousItemComponent.displayName = 'PreviousItemComponent';

/**
* @extends LiHTMLAttributes<HTMLLIElement>
*/
Expand Down

0 comments on commit 5bcf7f6

Please sign in to comment.