Skip to content

Commit 3cd0602

Browse files
committed
Use transient prop for TextButton component
1 parent cd0b2fb commit 3cd0602

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

extensions/ql-vscode/src/view/common/TextButton.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ import { styled } from "styled-components";
33

44
type Size = "x-small" | "small" | "medium" | "large" | "x-large";
55

6-
const StyledButton = styled.button<{ size: Size }>`
6+
const StyledButton = styled.button<{ $size: Size }>`
77
background: none;
88
color: var(--vscode-textLink-foreground);
99
border: none;
1010
cursor: pointer;
11-
font-size: ${(props) => props.size ?? "1em"};
11+
font-size: ${(props) => props.$size ?? "1em"};
1212
padding: 0;
1313
`;
1414

@@ -26,7 +26,7 @@ const TextButton = ({
2626
children: React.ReactNode;
2727
}) => (
2828
<StyledButton
29-
size={size}
29+
$size={size}
3030
onClick={onClick}
3131
className={className}
3232
title={title}

0 commit comments

Comments
 (0)