fix: console error (#180)

This commit is contained in:
Whitewater 2022-08-11 11:18:44 +08:00 committed by GitHub
parent 083d74c904
commit 94dbd89d8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 4 deletions

View File

@ -13,9 +13,10 @@ const StyledTabs = styled('div')(({ theme }) => {
};
});
const StyledTabTitle = styled('div', {
shouldForwardProp: (prop: string) => !['isActive'].includes(prop),
})<{ isActive?: boolean; isDisabled?: boolean }>`
const StyledTabTitle = styled('div')<{
isActive?: boolean;
isDisabled?: boolean;
}>`
flex: 1;
display: flex;
align-items: center;

View File

@ -168,7 +168,9 @@ export const TreeItemMoreActions = styled('div')`
visibility: hidden;
`;
export const TextLink = styled(Link)<{ active?: boolean }>`
export const TextLink = styled(Link, {
shouldForwardProp: (prop: string) => !['active'].includes(prop),
})<{ active?: boolean }>`
display: flex;
align-items: center;
flex-grow: 1;