<commit_before>import React,{ Component } from 'react';
import {Button, Input} from 'react-materialize';

class AddRoom extends Component {

  render() {

    return (
      <div>
       <Input placeholder="Room Name" s={12} label="Room Name1" />
       <Input placeholder="Room Name" s={12} label="Room Name2" />
       <Input placeholder="Room Name" s={12} label="Room Name3" />
       <Input placeholder="Room Name" s={12} label="Room Name4" />
       <Input placeholder="Room Name" s={12} label="Room Name5" />
       <Input placeholder="Room Name" s={12} label="Room Name6" />
       <Input placeholder="Room Name" s={12} label="Room Name7" />
       </div>


      )
  }
}

export default AddRoom;<commit_msg>feat(add room): added a form to handle adding rooms to roomlist<commit_after>import React,{ Component } from 'react';
import {Button, Input} from 'react-materialize';
import { reduxForm } from 'redux-form';
import { addRoom } from '../../rooms/actions/rooms.action'

class AddRoom extends Component {

  render() {
    const { fields: { roomName } , handleSubmit } = this.props;
    // const handleSubmit = this.props.handleSubmit;
    // const roomName = this.props.fields.roomName;
    return (
      <form onSubmit = { handleSubmit(this.props.addRoom) } >
        <Input type="text" placeholder="Room Name" s={12} label="Room Name" { ...roomName } />
        <button type="submit">Submit</button>
      </form>


      )
  }
}

export default reduxForm({
  form: 'AddRoomForm',
  fields: ['roomName'],
}, null, { addRoom } )(AddRoom);
{'fraction_non_alphanumeric': 0.1565721649484536, 'fraction_numerical': 0.014819587628865979, 'mean_word_length': 3.3259052924791086, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '7465169', 'n_tokens_mistral': 483, 'n_tokens_neox': 465, 'n_words': 131}