{"size": 751, "ext": "js", "max_stars_repo_path": "src/containers/Shoppingcart/component/ShopingTool/ShopingTool.js", "max_stars_repo_name": "MeetDay/dreampark-web", "max_stars_repo_stars_event_min_datetime": "2018-01-02T05:47:58.000Z", "max_stars_repo_stars_event_max_datetime": "2018-01-02T05:47:58.000Z", "max_issues_repo_path": "src/containers/Shoppingcart/component/ShopingTool/ShopingTool.js", "max_issues_repo_name": "MeetDay/dreampark-web", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/containers/Shoppingcart/component/ShopingTool/ShopingTool.js", "max_forks_repo_name": "MeetDay/dreampark-web", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 31.2916666667, "max_line_length": 122, "alphanum_fraction": 0.6071904128}
import React from 'react';
import PropTypes from 'prop-types';

import { Checkbox } from '../../../../components';

export default class ShopingTool extends React.Component {
    static propTypes = {
        allChecked: PropTypes.bool,
        price: PropTypes.number,
        onClickSettleAccount: PropTypes.func,
        onClickAllChecked: PropTypes.func
    }

    render () {
        const styles = require('./ShopingTool.scss');
        return (
            <div className={styles.tool}>
                <div onClick={this.props.onClickSettleAccount}>{`￥${this.props.price}`} 结算</div>
                <div><Checkbox checked={this.props.allChecked} value="全选" onChange={this.props.onClickAllChecked} /></div>
            </div>
        );
    }
}
