I hereby claim:
- I am dmeents on github.
- I am zabok (https://keybase.io/zabok) on keybase.
- I have a public key ASDcqTWM2Ff3s4G6kzlRAK5YsM6yDjJ0QuoBdBhQ2NLT3Qo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| import React, { Component } from 'react'; | |
| import { Field, reduxForm } from 'redux-form'; | |
| export const renderSelect = field => ( | |
| <div> | |
| <select {...field.input}/> | |
| {field.touched && field.error && <div className="error">{field.error}</div>} | |
| </div> | |
| ); |
| //server/controllers/_ticket-control.js | |
| 'use strict'; | |
| const Tickets = require('../models/tickets'); | |
| //=================== | |
| // Create Tickets Route | |
| //=================== | |
| exports.createTicket = function(req, res, next) { |
| import React, { Component } from 'react'; | |
| import { Field, reduxForm } from 'redux-form'; | |
| import { connect } from 'react-redux'; | |
| import * as actions from '../../actions'; | |
| const form = reduxForm({ | |
| form: 'ReduxFormTutorial', | |
| validate | |
| }); |
| //====================== | |
| // IMPORT | |
| //====================== | |
| import React, { Component } from 'react'; | |
| import Reactable from 'reactable'; | |
| var Table = Reactable.Table, | |
| Thead = Reactable.Thead, | |
| Th = Reactable.Th; |