rubycentral/cfp-app

View on GitHub
app/javascript/components/Schedule/GenerateGridButton.js

Summary

Maintainability
A
0 mins
Test Coverage
import React, { Component } from 'react';
import PropTypes from 'prop-types';

class GenerateGridButton extends Component {
  render() {
    const { openBulkTimeSlotModal } = this.props;

    return (
      <button className="generate_btn btn btn-primary" onClick={openBulkTimeSlotModal}>
        Generate Grid
      </button>
    );
  }
}

GenerateGridButton.propTypes = {
  dayViewing: PropTypes.number,
  generateGridPath: PropTypes.string,
};

export { GenerateGridButton };