1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00

add structured output support in configuration models

This commit is contained in:
checktheroads
2020-05-02 23:05:17 -07:00
parent 1867154ed2
commit 6858536d29
15 changed files with 420 additions and 390 deletions

View File

@@ -1,6 +1,6 @@
import * as React from "react";
import { Box } from "@chakra-ui/core";
import css from "@styled-system/css";
/** @jsx jsx */
import { jsx } from "@emotion/core";
import { Box, css } from "@chakra-ui/core";
const TableBody = ({ children, ...props }) => {
return (
@@ -9,7 +9,7 @@ const TableBody = ({ children, ...props }) => {
overflowY="scroll"
css={css({
"&::-webkit-scrollbar": { display: "none" },
"&": { "-ms-overflow-style": "none" }
"&": { msOverflowStyle: "none" }
})}
overflowX="hidden"
{...props}

View File

@@ -77,12 +77,6 @@ const Table = ({
usePagination
);
// tableColumns.map(col => {
// if (col.hidden === true) {
// setHiddenColumns(old => [...old, col.id]);
// }
// });
return (
<CardBody>
{!!tableHeading && <CardHeader>{tableHeading}</CardHeader>}

View File

@@ -324,7 +324,7 @@ const Structured = () => {
return (
<Layout>
<Flex my={8} w="80%">
<Flex my={8} maxW={["100%", "100%", "75%", "50%"]} w="100%">
<Table
columns={columns}
data={data.routes}