mirror of
https://github.com/apache/superset.git
synced 2026-04-25 02:55:07 +00:00
chore: Migrate .less styles to Emotion (#22474)
This commit is contained in:
committed by
GitHub
parent
5026da50e1
commit
39c96d0568
@@ -19,16 +19,18 @@
|
||||
import React from 'react';
|
||||
import Label from 'src/components/Label';
|
||||
import { STATE_TYPE_MAP } from 'src/SqlLab/constants';
|
||||
import { Query } from '@superset-ui/core';
|
||||
import { styled, Query } from '@superset-ui/core';
|
||||
|
||||
interface QueryStateLabelProps {
|
||||
query: Query;
|
||||
}
|
||||
|
||||
const StyledLabel = styled(Label)`
|
||||
margin-right: ${({ theme }) => theme.gridUnit}px;
|
||||
`;
|
||||
|
||||
export default function QueryStateLabel({ query }: QueryStateLabelProps) {
|
||||
return (
|
||||
<Label className="m-r-3" type={STATE_TYPE_MAP[query.state]}>
|
||||
{query.state}
|
||||
</Label>
|
||||
<StyledLabel type={STATE_TYPE_MAP[query.state]}>{query.state}</StyledLabel>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user