react-modal-login
Version:
A highly customizable react login modal with social buttons
23 lines (18 loc) • 431 B
JavaScript
/**
* Created by meller.olaf@gmail.com on 11/22/2017.
*/
import React from "react";
import CloseIcon from "./CloseIcon";
import PropTypes from "prop-types";
const CloseBtn = (props) => {
return (
<div className={props.containerClass} onClick={props.click}>
<CloseIcon />
</div>
);
};
CloseBtn.propTypes = {
containerClass: PropTypes.string,
click: PropTypes.func.isRequired,
};
export default CloseBtn;