Skip to content

Commit fb45a0d

Browse files
committed
Use transient prop for VerticalSpace component
1 parent 3cd0602 commit fb45a0d

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

extensions/ql-vscode/src/view/common/FileCodeSnippet/CodeSnippetMessage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export const CodeSnippetMessage = ({
8686
})}
8787
{children && (
8888
<>
89-
<VerticalSpace size={2} />
89+
<VerticalSpace $size={2} />
9090
{children}
9191
</>
9292
)}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { styled } from "styled-components";
22

3-
export const VerticalSpace = styled.div<{ size: 1 | 2 | 3 }>`
3+
export const VerticalSpace = styled.div<{ $size: 1 | 2 | 3 }>`
44
flex: 0 0 auto;
5-
height: ${(props) => 0.5 * props.size}em;
5+
height: ${(props) => 0.5 * props.$size}em;
66
`;

extensions/ql-vscode/src/view/data-flow-paths/DataFlowPaths.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ export const DataFlowPaths = ({
4848

4949
return (
5050
<>
51-
<VerticalSpace size={2} />
51+
<VerticalSpace $size={2} />
5252
<SectionTitle>{ruleDescription}</SectionTitle>
53-
<VerticalSpace size={2} />
53+
<VerticalSpace $size={2} />
5454

5555
<PathsContainer>
5656
<PathDetailsContainer>
@@ -66,7 +66,7 @@ export const DataFlowPaths = ({
6666
</PathDropdownContainer>
6767
</PathsContainer>
6868

69-
<VerticalSpace size={2} />
69+
<VerticalSpace $size={2} />
7070
<CodePath
7171
codeFlow={selectedCodeFlow}
7272
severity={severity}

0 commit comments

Comments
 (0)