mirror of
https://github.com/wassname/talk.git
synced 2026-07-13 17:45:56 +08:00
Revert and fix props
This commit is contained in:
@@ -7,23 +7,21 @@ import { withStyles } from "talk-ui/hocs";
|
||||
import Flex from "../Flex";
|
||||
import * as styles from "./FormField.css";
|
||||
|
||||
interface InnerProps extends HTMLAttributes<any> {
|
||||
interface InnerProps {
|
||||
children: ReactNode;
|
||||
classes: typeof styles;
|
||||
id?: string;
|
||||
className?: string;
|
||||
itemGutter?: boolean | "half";
|
||||
}
|
||||
|
||||
const FormField: StatelessComponent<InnerProps> = props => {
|
||||
const { classes, className, children, itemGutter, ...rest } = props;
|
||||
const { classes, className, children } = props;
|
||||
|
||||
return (
|
||||
<Flex
|
||||
direction="column"
|
||||
className={cn(classes.root, className)}
|
||||
itemGutter="half"
|
||||
{...rest}
|
||||
>
|
||||
{children}
|
||||
</Flex>
|
||||
|
||||
Reference in New Issue
Block a user