LoginSubmit.tsx 597 Bytes
Newer Older
陈帅's avatar
陈帅 committed
1 2 3 4 5 6 7 8
import React from 'react';
import classNames from 'classnames';
import { Button, Form } from 'antd';
import styles from './index.less';
import { ButtonProps } from 'antd/lib/button';
const FormItem = Form.Item;

interface LoginSubmitProps extends ButtonProps {
陈帅's avatar
陈帅 committed
9
  className?: string;
陈帅's avatar
陈帅 committed
10 11 12 13 14 15 16 17 18 19 20 21
}

const LoginSubmit: React.SFC<LoginSubmitProps> = ({ className, ...rest }) => {
  const clsString = classNames(styles.submit, className);
  return (
    <FormItem>
      <Button size="large" className={clsString} type="primary" htmlType="submit" {...rest} />
    </FormItem>
  );
};

export default LoginSubmit;