mirror of https://github.com/chillzhuang/Sword
17 lines
393 B
JavaScript
17 lines
393 B
JavaScript
import React, { PureComponent } from 'react';
|
|
import { Form } from 'antd';
|
|
import styles from './SwordPage.less';
|
|
|
|
export default class SearchBox extends PureComponent {
|
|
render() {
|
|
const { onSubmit, children } = this.props;
|
|
return (
|
|
<div className={styles.form}>
|
|
<Form onSubmit={onSubmit} layout="inline">
|
|
{children}
|
|
</Form>
|
|
</div>
|
|
);
|
|
}
|
|
}
|