diff --git a/src/components/BulkSendButton.jsx b/src/components/BulkSendButton.jsx
index 84d4d4c97..6793ca7d3 100644
--- a/src/components/BulkSendButton.jsx
+++ b/src/components/BulkSendButton.jsx
@@ -33,7 +33,7 @@ export default class BulkSendButton extends Component {
return (
this.setState({ showForm: false })}
+ onClick={() => this.setState({ showForm: false })}
style={{
marginLeft: 5,
display: 'inline-block'
diff --git a/src/components/CampaignCannedResponsesForm.jsx b/src/components/CampaignCannedResponsesForm.jsx
index fe7df3bee..8daef78c8 100644
--- a/src/components/CampaignCannedResponsesForm.jsx
+++ b/src/components/CampaignCannedResponsesForm.jsx
@@ -78,7 +78,7 @@ export default class CampaignCannedResponsesForm extends React.Component {
secondary
label='Add new canned response'
icon={}
- onTouchTap={() => this.setState({ showForm: true })}
+ onClick={() => this.setState({ showForm: true })}
/>
)
}
@@ -92,7 +92,7 @@ export default class CampaignCannedResponsesForm extends React.Component {
secondaryText={response.text}
rightIconButton={(
{
+ onClick={() => {
const newVals = this.props.formValues.cannedResponses.map((responseToDelete) => {
if (responseToDelete.id === response.id) {
return null
diff --git a/src/components/CampaignInteractionStepsForm.jsx b/src/components/CampaignInteractionStepsForm.jsx
index 7fea6190e..2d7ad68b8 100644
--- a/src/components/CampaignInteractionStepsForm.jsx
+++ b/src/components/CampaignInteractionStepsForm.jsx
@@ -135,7 +135,7 @@ export default class CampaignInteractionStepsForm extends React.Component {
fullWidth
hintText='Answer to the previous question'
/> : ''}
- {interactionStep.parentInteractionId ? : ''}
+ {interactionStep.parentInteractionId ? : ''}
{interactionStep.parentInteractionId && this.props.availableActions && this.props.availableActions.length ?
(
: ''}
@@ -217,7 +217,7 @@ export default class CampaignInteractionStepsForm extends React.Component {
{...dataTest('interactionSubmit')}
primary
label={this.props.saveLabel}
- onTouchTap={this.onSave.bind(this)}
+ onClick={this.onSave.bind(this)}
/>
)
diff --git a/src/components/CampaignTextersForm.jsx b/src/components/CampaignTextersForm.jsx
index 0ba165583..a60ea70e8 100644
--- a/src/components/CampaignTextersForm.jsx
+++ b/src/components/CampaignTextersForm.jsx
@@ -396,7 +396,7 @@ export default class CampaignTextersForm extends React.Component {
: ''}
{
+ onClick={async () => {
const currentFormValues = this.formValues()
const newFormValues = {
...currentFormValues
@@ -468,7 +468,7 @@ export default class CampaignTextersForm extends React.Component {
this.addAllTexters())}
+ onClick={(() => this.addAllTexters())}
/>
diff --git a/src/components/Chip.jsx b/src/components/Chip.jsx
index 10ee96bd5..de0119644 100644
--- a/src/components/Chip.jsx
+++ b/src/components/Chip.jsx
@@ -29,11 +29,11 @@ const styles = {
}
}
-function Chip({ text, iconRightClass, onIconRightTouchTap, onTouchTap, style = {} }) {
+function Chip({ text, iconRightClass, onIconRightTouchTap, onClick, style = {} }) {
return (
-
+
{text}
- {iconRightClass ? React.createElement(iconRightClass, { style: styles.icon, onTouchTap: onIconRightTouchTap }) : ''}
+ {iconRightClass ? React.createElement(iconRightClass, { style: styles.icon, onClick: onIconRightTouchTap }) : ''}
)
}
@@ -42,7 +42,7 @@ Chip.propTypes = {
text: PropTypes.element,
iconRightClass: PropTypes.string,
onIconRightTouchTap: PropTypes.func,
- onTouchTap: PropTypes.func,
+ onClick: PropTypes.func,
style: PropTypes.object
}
diff --git a/src/components/ConfirmButton.jsx b/src/components/ConfirmButton.jsx
index 2242ce3bc..270b59c7b 100644
--- a/src/components/ConfirmButton.jsx
+++ b/src/components/ConfirmButton.jsx
@@ -46,7 +46,7 @@ export default class ConfirmButton extends Component {
return (
diff --git a/src/components/ScriptList.jsx b/src/components/ScriptList.jsx
index acfde51f5..232064f4b 100644
--- a/src/components/ScriptList.jsx
+++ b/src/components/ScriptList.jsx
@@ -82,12 +82,12 @@ class ScriptList extends React.Component {
// targetOrigin={{horizontal: 'left', vertical: 'bottom'}}
// >
//
)
diff --git a/src/containers/AssignmentTexterSurveyDropdown.jsx b/src/containers/AssignmentTexterSurveyDropdown.jsx
index d01a686db..ed877c447 100644
--- a/src/containers/AssignmentTexterSurveyDropdown.jsx
+++ b/src/containers/AssignmentTexterSurveyDropdown.jsx
@@ -63,7 +63,7 @@ class AssignmentTexterSurveyDropdown extends Component {
key='clear'
value='clearResponse'
primaryText='Clear response'
- // onTouchTap={(event) => this.handleAnswerDelete(event, step.id)}
+ // onClick={(event) => this.handleAnswerDelete(event, step.id)}
/>
)
diff --git a/src/containers/CampaignList.jsx b/src/containers/CampaignList.jsx
index 4a16a72c0..d9e58cd30 100644
--- a/src/containers/CampaignList.jsx
+++ b/src/containers/CampaignList.jsx
@@ -91,7 +91,7 @@ class CampaignList extends React.Component {
style={listItemStyle}
key={campaign.id}
primaryText={primaryText}
- onTouchTap={() => (!isStarted ?
+ onClick={() => (!isStarted ?
this.props.router.push(`${campaignUrl}/edit`) :
this.props.router.push(campaignUrl))}
secondaryText={secondaryText}
@@ -100,14 +100,14 @@ class CampaignList extends React.Component {
(campaign.isArchived ? (
this.props.mutations.unarchiveCampaign(campaign.id)}
+ onClick={async () => this.props.mutations.unarchiveCampaign(campaign.id)}
>
) : (
this.props.mutations.archiveCampaign(campaign.id)}
+ onClick={async () => this.props.mutations.archiveCampaign(campaign.id)}
>
diff --git a/src/containers/Settings.jsx b/src/containers/Settings.jsx
index c9bf5423d..532754af8 100644
--- a/src/containers/Settings.jsx
+++ b/src/containers/Settings.jsx
@@ -98,7 +98,7 @@ class Settings extends React.Component {
) : ''}
diff --git a/src/containers/UserMenu.jsx b/src/containers/UserMenu.jsx
index 57219aca6..5eb7e47a6 100644
--- a/src/containers/UserMenu.jsx
+++ b/src/containers/UserMenu.jsx
@@ -88,7 +88,7 @@ class UserMenu extends Component {
return (
{this.renderAvatar(currentUser, avatarSize)}
diff --git a/src/store/actions/index.js b/src/store/actions/index.js
deleted file mode 100644
index 40d700724..000000000
--- a/src/store/actions/index.js
+++ /dev/null
@@ -1,8 +0,0 @@
-export const ADD_COUNT = 'ADD_COUNT'
-
-export function addCount(amount) {
- return {
- type: ADD_COUNT,
- payload: amount
- }
-}
diff --git a/src/store/index.js b/src/store/index.js
index 7da9941aa..680631ab7 100644
--- a/src/store/index.js
+++ b/src/store/index.js
@@ -2,12 +2,10 @@ import { createStore, combineReducers, compose, applyMiddleware } from 'redux'
import { routerReducer, routerMiddleware } from 'react-router-redux'
import ReduxThunk from 'redux-thunk'
import ApolloClientSingleton from '../network/apollo-client-singleton'
-import * as reducers from './reducers'
export default class Store {
constructor(history, initialState = {}) {
const reducer = combineReducers({
- ...reducers,
apollo: ApolloClientSingleton.reducer(),
routing: routerReducer
})
diff --git a/src/store/reducers/count.js b/src/store/reducers/count.js
deleted file mode 100644
index 941b5f98b..000000000
--- a/src/store/reducers/count.js
+++ /dev/null
@@ -1,8 +0,0 @@
-import { ADD_COUNT } from '../actions'
-
-export default function (state = 0, action) {
- if (action.type === ADD_COUNT) {
- return state + action.payload
- }
- return state
-}
diff --git a/src/store/reducers/index.js b/src/store/reducers/index.js
deleted file mode 100644
index 2907d1716..000000000
--- a/src/store/reducers/index.js
+++ /dev/null
@@ -1 +0,0 @@
-export count from './count'