Skip to content

Commit

Permalink
Merge pull request #1033 from voluntarily/Adam-Emergency-fix
Browse files Browse the repository at this point in the history
VP1871 - Adam Emergency Fix for demo
  • Loading branch information
waltzaround committed Aug 20, 2020
2 parents b6379f1 + 56c3fa3 commit 41c2b8c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
12 changes: 6 additions & 6 deletions components/Op/OpAboutPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,20 @@ export function OpAboutPanel ({ op }) {
<OpSectionGrid>
<H3><FormattedMessage id='OpAboutPanel.section.title.about' defaultMessage='About' /></H3>
<div>
{subtitle}
{description &&
<>
<Html>{description}</Html>
<Divider />
</>}
{op.fromActivity &&
<>
<Html>
{op.fromActivity.description}
</Html>
<Divider />
</>}
{description &&
<>
<Html>{description}</Html>
<Divider />
</>}

{subtitle}
<TagContainer>
<h5><FormattedMessage id='OpAboutPanel.categories' defaultMessage='Categories' /></h5>
<TagDisplay tags={op.tags} />
Expand Down
8 changes: 5 additions & 3 deletions components/Op/OpShortForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import PropTypes from 'prop-types'
import React, { Component } from 'react'
import { OpportunityStatus } from '../../server/api/opportunity/opportunity.constants'
import OpFormDate from './OpFormDate'
// import OpFormDescription from './OpFormDescription'
import OpFormDescription from './OpFormDescription'
import OpFormPublishBtns from './OpFormDoneBtns'
import OpFormLocation from './OpFormLocation'
import OpFormTitle from './OpFormTitle'
Expand Down Expand Up @@ -40,7 +40,7 @@ class OpShortForm extends Component {
op.date = [] // Dirty work around to not change schema
op.date.push(startDateValue, endDateValue)
// op.name = values.name
// op.subtitle = values.subtitle
op.subtitle = values.subtitle
// op.tags = values.tags

const duration = moment.duration()
Expand Down Expand Up @@ -102,6 +102,8 @@ class OpShortForm extends Component {
<OpFormTitle type={op.type} title={op.name} onBack={this.props.onCancel} />
<Divider />
<Form colon={false}>
<OpFormDescription getFieldDecorator={getFieldDecorator} type={op.type} />
<Divider />
<OpFormLocation getFieldDecorator={getFieldDecorator} setFieldsValue={setFieldsValue} type={op.type} orgMembership={orgMembership} addressFinderKey={this.props.locations.addressFinderKey} />
<Divider />
<OpFormDate getFieldDecorator={getFieldDecorator} type={op.type} onChange={this.handleStartDateChange} />
Expand Down Expand Up @@ -176,7 +178,7 @@ export default Form.create({

return {
// name: Form.createFormField({ ...op.name, value: op.name }),
// subtitle: Form.createFormField({ value: op.subtitle }),
subtitle: Form.createFormField({ value: op.subtitle }),
description: Form.createFormField({ value: op.description }),
durationHours: Form.createFormField({ value: totalHours }),
durationMinutes: Form.createFormField({ value: isoDuration.minutes() }),
Expand Down

0 comments on commit 41c2b8c

Please sign in to comment.