From 051dcb8454b4e0d5236e6189c1b61cf30010e0c3 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Mon, 10 Sep 2018 15:54:48 -0400 Subject: [PATCH 01/26] allow form submit with enter key --- client/src/components/ButtonPrimary/index.jsx | 3 ++- client/src/containers/ChannelCreateForm/view.jsx | 5 +++-- client/src/containers/ChannelLoginForm/view.jsx | 5 +++-- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/client/src/components/ButtonPrimary/index.jsx b/client/src/components/ButtonPrimary/index.jsx index 1011f902..6b8230d3 100644 --- a/client/src/components/ButtonPrimary/index.jsx +++ b/client/src/components/ButtonPrimary/index.jsx @@ -1,8 +1,9 @@ import React from 'react'; -const ButtonPrimary = ({ value, onClickHandler }) => { +const ButtonPrimary = ({ value, onClickHandler, type = 'button' }) => { return (