Skip to content
Snippets Groups Projects
Unverified Commit fbedfb9d authored by Alexander Polyankin's avatar Alexander Polyankin Committed by GitHub
Browse files

Migrate from grid-styled in new-query (#20169)

parent 42b628b0
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,6 @@ import { t } from "ttag";
import fitViewport from "metabase/hoc/FitViewPort";
import { Box } from "grid-styled";
import { Grid, GridItem } from "metabase/components/Grid";
import NewQueryOption from "metabase/new_query/components/NewQueryOption";
......@@ -20,6 +19,7 @@ import {
getHasDataAccess,
getHasNativeWrite,
} from "metabase/new_query/selectors";
import { QueryOptionsRoot } from "./NewQueryOptions.styled";
import Database from "metabase/entities/databases";
......@@ -33,8 +33,6 @@ const mapDispatchToProps = {
push,
};
const PAGE_PADDING = [1, 4];
@fitViewport
@connect(mapStateToProps, mapDispatchToProps)
export default class NewQueryOptions extends Component {
......@@ -75,7 +73,7 @@ export default class NewQueryOptions extends Component {
const ITEM_WIDTHS = [1, 1 / 2, 1 / NUM_ITEMS];
return (
<Box my="auto" mx={PAGE_PADDING}>
<QueryOptionsRoot>
<Grid className="justifyCenter">
{hasDataAccess && (
<GridItem width={ITEM_WIDTHS}>
......@@ -120,7 +118,7 @@ export default class NewQueryOptions extends Component {
</GridItem>
)}
</Grid>
</Box>
</QueryOptionsRoot>
);
}
}
import styled from "styled-components";
import { breakpointMinSmall } from "metabase/styled-components/theme";
export const QueryOptionsRoot = styled.div`
margin: auto 0.5rem;
${breakpointMinSmall} {
margin-left: 4rem;
margin-right: 4rem;
}
`;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment