Skip to content

Commit 539a04f

Browse files
authored
Fix lint errors from styled-components callback returns
1 parent b57b41a commit 539a04f

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { styled } from "styled-components";
1313

1414
const StyledDataGrid = styled.div<{ $gridTemplateColumns: string | number }>`
1515
display: grid;
16-
grid-template-columns: ${(props) => props.$gridTemplateColumns};
16+
grid-template-columns: ${(props) => `${props.$gridTemplateColumns}`};
1717
box-sizing: border-box;
1818
width: 100%;
1919
background: transparent;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const StyledButton = styled.button<{ $size?: Size }>`
77
color: var(--vscode-textLink-foreground);
88
border: none;
99
cursor: pointer;
10-
font-size: ${(props) => props.$size ?? "1em"};
10+
font-size: ${(props) => (props.$size ? `${props.$size}` : "1em")};
1111
padding: 0;
1212
`;
1313

extensions/ql-vscode/src/view/variant-analysis/RawResultsTable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const TableContainer = styled.div<TableContainerProps>`
1717
// minimum width of 1fr is auto, not 0.
1818
// https://css-tricks.com/equal-width-columns-in-css-grid-are-kinda-weird/
1919
grid-template-columns: repeat(
20-
${(props) => props.$columnCount},
20+
${(props) => Number(props.$columnCount)},
2121
minmax(0, 1fr)
2222
);
2323
max-width: 45rem;

0 commit comments

Comments
 (0)