app/components/DialogAdd/actions.js
/**
 * Changes the input field of the form
 *
 * @param  {string} username The new text of the input field
 *
 * @return {object} An action object with a type of CHANGE_USERNAME
 */
Changes the input field of the form
@param  {string} username The new text of the input field

@return {object} An action object with a type of CHANGE_USERNAME
Changes the input field of the form @param { string } username The new text of the input field @return { object } An action object with a type of CHANGE_USERNAME
function changeName(name) {
  return {
    type: CHANGE_NAME,
    name,
  };
}
function changeName ( name ) { return { type : CHANGE_NAME , name , } ; }
Changes the input field of the form
 @param  {string} username The new text of the input field
Changes the input field of the form @param { string } username The new text of the input field