Skip to content

Commit 58e80ec

Browse files
committed
Rename styled components to be more descriptive
1 parent 0ad44a3 commit 58e80ec

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

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

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,21 @@ export type VariantAnalysisHeaderProps = {
2020
onExportResultsClick: () => void;
2121
};
2222

23-
const Wrapper = styled.div`
23+
const Container = styled.div`
2424
display: flex;
2525
align-items: center;
2626
`;
2727

28-
const HeaderWrapper = styled.div`
28+
const TopRow = styled.div`
2929
max-width: 100%;
3030
`;
3131

32-
const HeaderButtons = styled.div`
32+
const TopLinkButtons = styled.div`
3333
display: flex;
3434
gap: 1em;
3535
`;
3636

37-
const ActionsWrapper = styled.div`
37+
const BottomButtons = styled.div`
3838
margin-left: auto;
3939
display: flex;
4040
gap: 1em;
@@ -55,10 +55,10 @@ export const VariantAnalysisHeader = ({
5555
onExportResultsClick
5656
}: VariantAnalysisHeaderProps) => {
5757
return (
58-
<Wrapper>
59-
<HeaderWrapper>
58+
<Container>
59+
<TopRow>
6060
<ViewTitle>{queryName}</ViewTitle>
61-
<HeaderButtons>
61+
<TopLinkButtons>
6262
<LinkIconButton onClick={onOpenQueryClick}>
6363
<FileCodeIcon size={16} />
6464
{queryFileName}
@@ -67,9 +67,9 @@ export const VariantAnalysisHeader = ({
6767
<CodeSquareIcon size={16} />
6868
View query
6969
</LinkIconButton>
70-
</HeaderButtons>
71-
</HeaderWrapper>
72-
<ActionsWrapper>
70+
</TopLinkButtons>
71+
</TopRow>
72+
<BottomButtons>
7373
{status === VariantAnalysisStatus.InProgress && (
7474
<VSCodeButton appearance="secondary" onClick={onStopQueryClick}>
7575
Stop query
@@ -85,7 +85,7 @@ export const VariantAnalysisHeader = ({
8585
</Button>
8686
</>
8787
)}
88-
</ActionsWrapper>
89-
</Wrapper>
88+
</BottomButtons>
89+
</Container>
9090
);
9191
};

0 commit comments

Comments
 (0)