Skip to content

Commit 4755e04

Browse files
committed
fix: typescript errors in Header
1 parent 94bfe6c commit 4755e04

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/apsara-ui/src/Header/Header.styles.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import styled, { css } from "styled-components";
2-
import { Layout, Avatar as AntdAvatar, Menu as AntdMenu } from "antd";
2+
import { Layout, Avatar as AntdAvatar, AvatarProps, Menu as AntdMenu } from "antd";
33
import { textStyles } from "../mixin";
44

55
const { Header } = Layout;
@@ -29,7 +29,7 @@ export const Holder = styled.span`
2929
margin-left: 8px;
3030
`;
3131

32-
export const Avatar = styled(AntdAvatar)<{ $learn?: boolean }>`
32+
export const Avatar: React.FC<AvatarProps> = styled(AntdAvatar)<{ $learn?: boolean }>`
3333
background: ${({ $learn, theme }) => ($learn ? theme?.header?.learn : theme?.header?.title)};
3434
color: ${({ theme }) => theme?.header?.avatar};
3535
vertical-align: middle;

0 commit comments

Comments
 (0)