From defd0561f1e551dc9246d364cc55fe4c552ee0db Mon Sep 17 00:00:00 2001 From: Berkeley Martinez Date: Thu, 15 Oct 2015 22:30:07 -0700 Subject: [PATCH] Change name to company name in form --- common/app/routes/Jobs/components/NewJob.jsx | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/common/app/routes/Jobs/components/NewJob.jsx b/common/app/routes/Jobs/components/NewJob.jsx index 440fb7df53..611bd49f85 100644 --- a/common/app/routes/Jobs/components/NewJob.jsx +++ b/common/app/routes/Jobs/components/NewJob.jsx @@ -34,7 +34,7 @@ const checkValidity = [ 'phone', 'url', 'logo', - 'name', + 'company', 'highlight' ]; @@ -74,7 +74,7 @@ export default contain({ phone, url, logo, - name, + company, highlight } = form; return { @@ -85,7 +85,7 @@ export default contain({ phone: formatValue(phone, isValidPhone), url: formatValue(url, isValidURL), logo: formatValue(logo, isValidURL), - name: formatValue(name, makeRequired(isAscii)), + company: formatValue(company, makeRequired(isAscii)), highlight: formatValue(highlight, null, 'bool') }; }, @@ -105,7 +105,7 @@ export default contain({ phone: PropTypes.object, url: PropTypes.object, logo: PropTypes.object, - name: PropTypes.object, + company: PropTypes.object, highlight: PropTypes.object }, @@ -135,7 +135,7 @@ export default contain({ phone, url, logo, - name, + company, highlight, jobActions } = this.props; @@ -149,7 +149,7 @@ export default contain({ phone: inHTMLData(phone.value), url: uriInSingleQuotedAttr(url.value), logo: uriInSingleQuotedAttr(logo.value), - name: inHTMLData(name.value), + company: inHTMLData(company.value), highlight: !!highlight.value }; @@ -186,7 +186,7 @@ export default contain({ phone, url, logo, - name, + company, highlight, jobActions: { handleForm } } = this.props; @@ -245,13 +245,13 @@ export default contain({

Company Information

handleChange('name', e) } + onChange={ (e) => handleChange('company', e) } placeholder='Foo, INC' type='text' - value={ name.value } + value={ company.value } wrapperClassName={ inputClass } />