@@ -19,7 +19,7 @@ import {
1919/**
2020 * Change the category of litter eg Smoking, Alcohol
2121 */
22- export const changeCategory = ( id ) => {
22+ export const changeCategory = id => {
2323 return {
2424 type : CHANGE_CATEGORY ,
2525 payload : id
@@ -29,7 +29,7 @@ export const changeCategory = (id) => {
2929/**
3030 * Change the item of litter in a category eg butts, lighters
3131 */
32- export const changeItem = ( item ) => {
32+ export const changeItem = item => {
3333 return {
3434 type : CHANGE_ITEM ,
3535 payload : item
@@ -39,7 +39,7 @@ export const changeItem = (item) => {
3939/**
4040 * Change Quantity of litter
4141 */
42- export const changeQ = ( q ) => {
42+ export const changeQ = q => {
4343 return {
4444 type : CHANGE_Q ,
4545 payload : q
@@ -51,9 +51,15 @@ export const changeQ = (q) => {
5151 * picker wheel rotated status == True
5252 * after tag is added satus set to false
5353 *
54+ * If quantityChanged is true -- then while clicking Add Tag button
55+ * the quantilty value currently in PICKER is added to tag
56+ *
57+ * else if quantityChanged is false -- then while clicking Add Tag button
58+ * quantity currently on TAG + 1 is added on tag.
59+ *
5460 * @param {boolean } boolValue
5561 */
56- export const changeQuantiyStatus = ( boolValue ) => {
62+ export const changeQuantityStatus = boolValue => {
5763 return {
5864 type : CHANGE_QUANTITY_STATUS ,
5965 payload : boolValue
@@ -65,7 +71,7 @@ export const changeQuantiyStatus = (boolValue) => {
6571 *
6672 * Needs to be extracted to Redux as the number of web-photos changes when 1 is submitted
6773 */
68- export const swiperIndexChanged = ( index ) => {
74+ export const swiperIndexChanged = index => {
6975 return {
7076 type : CHANGE_SWIPER_INDEX ,
7177 payload : index
@@ -98,7 +104,7 @@ export const resetLitterTags = () => {
98104 * Content to show in LitterPicker modal
99105 * @show allTags
100106 */
101- export const showAllTags = ( bool ) => {
107+ export const showAllTags = bool => {
102108 return {
103109 type : SHOW_ALL_TAGS ,
104110 payload : bool
@@ -108,7 +114,7 @@ export const showAllTags = (bool) => {
108114/**
109115 * Open / Close the modal on LitterPicker.js
110116 */
111- export const setLitterPickerModal = ( bool ) => {
117+ export const setLitterPickerModal = bool => {
112118 return {
113119 type : SHOW_INNER_MODAL ,
114120 payload : bool
@@ -127,7 +133,7 @@ export const toggleSwitch = () => {
127133/**
128134 *
129135 */
130- export const updatePreviousTags = ( tags ) => {
136+ export const updatePreviousTags = tags => {
131137 return {
132138 type : UPDATE_PREVIOUS_TAGS ,
133139 payload : tags
@@ -137,7 +143,7 @@ export const updatePreviousTags = (tags) => {
137143/**
138144 * Capture the X positions of the tags when they are added / change
139145 */
140- export const updateTagXPosition = ( data ) => {
146+ export const updateTagXPosition = data => {
141147 return {
142148 type : UPDATE_TAGS_X_POS ,
143149 payload : data
0 commit comments