sign in view

This commit is contained in:
Belén Curcio
2018-08-09 11:03:13 -03:00
parent 7483414981
commit f3403d4223
7 changed files with 112 additions and 10 deletions
@@ -0,0 +1,5 @@
.root {
display: block;
margin-bottom: var(--spacing-unit);
width: 100%;
}
@@ -0,0 +1,33 @@
import cn from "classnames";
import React, { ReactNode } from "react";
import { StatelessComponent } from "react";
import { withStyles } from "talk-ui/hocs";
import Flex from "../Flex";
import * as styles from "./FormField.css";
interface InnerProps {
children: ReactNode;
classes: typeof styles;
id?: string;
className?: string;
}
const FormField: StatelessComponent<InnerProps> = props => {
const { classes, className, children, ...rest } = props;
return (
<Flex
direction="column"
itemGutter="half"
className={cn(classes.root, className)}
{...rest}
>
{children}
</Flex>
);
};
const enhanced = withStyles(styles)(FormField);
export default enhanced;
@@ -0,0 +1 @@
export { default } from "./FormField";
+1
View File
@@ -14,3 +14,4 @@ export { default as TextField } from "./TextField";
export { default as CallOut } from "./CallOut";
export { default as ClickOutside } from "./ClickOutside";
export { default as Popup } from "./Popup";
export { default as FormField } from "./FormField";