<commit_before>import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';

import LinkWrapper from 'atoms/LinkWrapper';
import SelectField from 'molecules/formfields/SelectField';
import styles from './select-card.module.scss';


function SelectCard( props ) {
  const {
    className,
    label,
    placeholder,
    selectOptions,
    footerText,
    linkUrl,
    onClick,
    onChange,
    value
  } = props;

  return (
    <div className={classnames( styles.select, className )}>
      <SelectField
        type='select-card'
        label={label}
        placeholder={placeholder}
        selectOptions={selectOptions}
        input={{
          onChange,
          value
        }}
      />

      <footer className={styles.footer}>
        <div className={styles['footer-link-wrapper']}>
          <LinkWrapper
            href={linkUrl}
            className={styles.link}
            onClick={onClick}
          >
            { footerText }
          </LinkWrapper>
        </div>
      </footer>
    </div>
  );
}

SelectCard.propTypes = {
  /**
   * optional additional class name for card
   */
  className: PropTypes.string,

  /**
   * text for footer link
   */
  footerText: PropTypes.string.isRequired,

  /**
   * label for select field
   */
  label: PropTypes.string,

  /**
   * url for footer link
   */
  linkUrl: PropTypes.string,

  /**
   * onChange callback for select field
   */
  onChange: PropTypes.func.isRequired,

  /**
   * onClick callback for footer link
   */
  onClick: PropTypes.func,

  /**
   * placeholder for select field
   */
  placeholder: PropTypes.string,

  /**
   * array of select options for select field
   */
  selectOptions: PropTypes.array.isRequired,

  /**
   * value passed to select field
   */
  value: PropTypes.string
};

export default SelectCard;
<commit_msg>Fix input prop on select card for Redux Form<commit_after>import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';

import LinkWrapper from 'atoms/LinkWrapper';
import SelectField from 'molecules/formfields/SelectField';
import styles from './select-card.module.scss';


function SelectCard( props ) {
  const {
    className,
    label,
    placeholder,
    selectOptions,
    footerText,
    linkUrl,
    onClick,
    input
  } = props;

  return (
    <div className={classnames( styles.select, className )}>
      <SelectField
        type='select-card'
        label={label}
        placeholder={placeholder}
        selectOptions={selectOptions}
        input={input}
      />

      <footer className={styles.footer}>
        <div className={styles['footer-link-wrapper']}>
          <LinkWrapper
            href={linkUrl}
            className={styles.link}
            onClick={onClick}
          >
            { footerText }
          </LinkWrapper>
        </div>
      </footer>
    </div>
  );
}

SelectCard.propTypes = {
  /**
   * optional additional class name for card
   */
  className: PropTypes.string,

  /**
   * text for footer link
   */
  footerText: PropTypes.string.isRequired,

  /**
   * label for select field
   */
  label: PropTypes.string,

  /**
   * url for footer link
   */
  linkUrl: PropTypes.string,

  /**
   * onClick callback for footer link
   */
  onClick: PropTypes.func,

  /**
   * placeholder for select field
   */
  placeholder: PropTypes.string,

  /**
   * array of select options for select field
   */
  selectOptions: PropTypes.array.isRequired,

  /**
   * Redux Form input object; pass any variables necessary for input change here
   */
  input: PropTypes.object
};

export default SelectCard;

{'fraction_non_alphanumeric': 0.11217248908296944, 'fraction_numerical': 0.0, 'mean_word_length': 2.3593033913840515, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2352238', 'n_tokens_mistral': 1047, 'n_tokens_neox': 1039, 'n_words': 265}