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

Refactor React components & update deps

This commit is contained in:
checktheroads
2020-07-05 17:20:10 -07:00
parent 6ea8dfe975
commit 79c271b0ce
56 changed files with 1231 additions and 1272 deletions

View File

@@ -1,4 +1,4 @@
import React from "react";
import * as React from "react";
import {
Flex,
FormControl,
@@ -7,7 +7,9 @@ import {
useColorMode
} from "@chakra-ui/core";
export default ({
const labelColor = { dark: "whiteAlpha.700", light: "blackAlpha.700" };
const FormField = ({
label,
name,
error,
@@ -21,7 +23,7 @@ export default ({
...props
}) => {
const { colorMode } = useColorMode();
const labelColor = { dark: "whiteAlpha.700", light: "blackAlpha.700" };
return (
<FormControl
as={Flex}
@@ -59,3 +61,5 @@ export default ({
</FormControl>
);
};
export default FormField;