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
2 changed files with 7 additions and 4 deletions

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;