Skip to content

Commit

Permalink
🐛 fix: ts error fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
ONLY-yours committed Nov 9, 2023
1 parent cdd0904 commit 054c832
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions src/Highlight/components/LanguageTag/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ const useStyles = createStyles(({ cx, css, token }, { prefixCls, theme }) => {
.hsl()
.string();

console.log('background', background);

return {
small: cx(
`${prefix}-tag-small`,
Expand Down Expand Up @@ -60,20 +58,13 @@ export interface TagProps extends AntTagProps {
}

const LanguageTag: React.FC<TagProps> = (props) => {
const { icon, children, size = 'default', theme = 'light', prefixCls, ...rest } = props || {};
const { children, size = 'default', theme = 'light', prefixCls } = props || {};
const { styles, cx } = useStyles({ theme, prefixCls });

console.log('rest', rest);

return (
<>
<Tag
bordered={false}
className={cx(styles.tag, styles.lang, size === 'small' && styles.small)}
>
{children}
</Tag>
</>
<Tag bordered={false} className={cx(styles.tag, styles.lang, size === 'small' && styles.small)}>
{children}
</Tag>
);
};

Expand Down

0 comments on commit 054c832

Please sign in to comment.