mirror of
https://github.com/checktheroads/hyperglass
synced 2024-05-11 05:55:08 +00:00
JS style updates [skip ci]
This commit is contained in:
@@ -1,18 +1,12 @@
|
||||
import * as React from "react";
|
||||
import { Box, useColorMode } from "@chakra-ui/core";
|
||||
import * as React from 'react';
|
||||
import { Box, useColorMode } from '@chakra-ui/core';
|
||||
|
||||
const bg = { dark: "whiteAlpha.100", light: "blackAlpha.100" };
|
||||
const bg = { dark: 'whiteAlpha.100', light: 'blackAlpha.100' };
|
||||
|
||||
export const TableHead = ({ children, ...props }) => {
|
||||
const { colorMode } = useColorMode();
|
||||
return (
|
||||
<Box
|
||||
as="thead"
|
||||
overflowX="hidden"
|
||||
overflowY="auto"
|
||||
bg={bg[colorMode]}
|
||||
{...props}
|
||||
>
|
||||
<Box as="thead" overflowX="hidden" overflowY="auto" bg={bg[colorMode]} {...props}>
|
||||
{children}
|
||||
</Box>
|
||||
);
|
||||
|
Reference in New Issue
Block a user