Skip to content

Commit cd0b2fb

Browse files
committed
Use transient prop for HorizontalSpace component
1 parent 1cc6338 commit cd0b2fb

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { styled } from "styled-components";
22

3-
export const HorizontalSpace = styled.div<{ size: 1 | 2 | 3 }>`
3+
export const HorizontalSpace = styled.div<{ $size: 1 | 2 | 3 }>`
44
flex: 0 0 auto;
55
display: inline-block;
6-
width: ${(props) => 0.2 * props.size}em;
6+
width: ${(props) => 0.2 * props.$size}em;
77
`;

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,29 +27,29 @@ function getIcon(
2727
if (variantAnalysisStatus === VariantAnalysisStatus.Canceled) {
2828
return (
2929
<>
30-
<HorizontalSpace size={2} />
30+
<HorizontalSpace $size={2} />
3131
<ErrorIcon label="Some analyses were stopped" />
3232
</>
3333
);
3434
} else {
3535
return (
3636
<>
37-
<HorizontalSpace size={2} />
37+
<HorizontalSpace $size={2} />
3838
<ErrorIcon label="Some analyses failed" />
3939
</>
4040
);
4141
}
4242
} else if (skippedRepositoryCount > 0) {
4343
return (
4444
<>
45-
<HorizontalSpace size={2} />
45+
<HorizontalSpace $size={2} />
4646
<WarningIcon label="Some repositories were skipped" />
4747
</>
4848
);
4949
} else if (variantAnalysisStatus === VariantAnalysisStatus.Succeeded) {
5050
return (
5151
<>
52-
<HorizontalSpace size={2} />
52+
<HorizontalSpace $size={2} />
5353
<SuccessIcon label="Completed" />
5454
</>
5555
);
@@ -68,7 +68,7 @@ export const VariantAnalysisRepositoriesStats = ({
6868
if (variantAnalysisStatus === VariantAnalysisStatus.Failed) {
6969
return (
7070
<>
71-
0<HorizontalSpace size={2} />
71+
<HorizontalSpace $size={2} />
7272
<ErrorIcon label="Variant analysis failed" />
7373
</>
7474
);

0 commit comments

Comments
 (0)