Rename styled components to be more descriptive
This commit is contained in:
@@ -20,21 +20,21 @@ export type VariantAnalysisHeaderProps = {
|
|||||||
onExportResultsClick: () => void;
|
onExportResultsClick: () => void;
|
||||||
};
|
};
|
||||||
|
|
||||||
const Wrapper = styled.div`
|
const Container = styled.div`
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const HeaderWrapper = styled.div`
|
const TopRow = styled.div`
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const HeaderButtons = styled.div`
|
const TopLinkButtons = styled.div`
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 1em;
|
gap: 1em;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const ActionsWrapper = styled.div`
|
const BottomButtons = styled.div`
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 1em;
|
gap: 1em;
|
||||||
@@ -55,10 +55,10 @@ export const VariantAnalysisHeader = ({
|
|||||||
onExportResultsClick
|
onExportResultsClick
|
||||||
}: VariantAnalysisHeaderProps) => {
|
}: VariantAnalysisHeaderProps) => {
|
||||||
return (
|
return (
|
||||||
<Wrapper>
|
<Container>
|
||||||
<HeaderWrapper>
|
<TopRow>
|
||||||
<ViewTitle>{queryName}</ViewTitle>
|
<ViewTitle>{queryName}</ViewTitle>
|
||||||
<HeaderButtons>
|
<TopLinkButtons>
|
||||||
<LinkIconButton onClick={onOpenQueryClick}>
|
<LinkIconButton onClick={onOpenQueryClick}>
|
||||||
<FileCodeIcon size={16} />
|
<FileCodeIcon size={16} />
|
||||||
{queryFileName}
|
{queryFileName}
|
||||||
@@ -67,9 +67,9 @@ export const VariantAnalysisHeader = ({
|
|||||||
<CodeSquareIcon size={16} />
|
<CodeSquareIcon size={16} />
|
||||||
View query
|
View query
|
||||||
</LinkIconButton>
|
</LinkIconButton>
|
||||||
</HeaderButtons>
|
</TopLinkButtons>
|
||||||
</HeaderWrapper>
|
</TopRow>
|
||||||
<ActionsWrapper>
|
<BottomButtons>
|
||||||
{status === VariantAnalysisStatus.InProgress && (
|
{status === VariantAnalysisStatus.InProgress && (
|
||||||
<VSCodeButton appearance="secondary" onClick={onStopQueryClick}>
|
<VSCodeButton appearance="secondary" onClick={onStopQueryClick}>
|
||||||
Stop query
|
Stop query
|
||||||
@@ -85,7 +85,7 @@ export const VariantAnalysisHeader = ({
|
|||||||
</Button>
|
</Button>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
</ActionsWrapper>
|
</BottomButtons>
|
||||||
</Wrapper>
|
</Container>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user