Skip to content

Commit

Permalink
fix: eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
soslayando committed Apr 9, 2024
1 parent ee465b0 commit 33c2173
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
3 changes: 1 addition & 2 deletions packages/core/src/components/Avatar/Avatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@ import * as React from 'react';

import { AVATAR_SIZE_BADGE_MAP } from './constants';

import type { IAvatar, TAvatarBadgeFn } from './declarations';
import type { IAvatar } from './declarations';

import {
AvatarBadge,
AvatarContainer,
type AvatarContainerProps,
AvatarInitials,
type AvatarInitialsProps,
AvatarSROnly,
} from './components';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import * as React from 'react';
import { css } from 'styled-components';

/**
* Get the pseudo-element styles but generate an overlay.
Expand All @@ -20,8 +21,11 @@ export const pseudoElementMixin = (
display: 'block',
pos: 'absolute',
},
) => `
content: ${content};
display: ${display};
position: ${pos};
`;
) => {
console.info(content);
return css`
content: ${content};
display: ${display};
position: ${pos};
`;
};
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const StyledHeaderCellResizer = styled.span<StyledHeaderCellResizerProps>
&::before,
&::after {
${pseudoElementMixin()};
${pseudoElementMixin({})};
right: 0;
cursor: col-resize;
}
Expand Down

0 comments on commit 33c2173

Please sign in to comment.