muba-posting 4.1.10 → 4.1.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/Posting.js CHANGED
@@ -195,6 +195,9 @@ export default class Posting extends React.Component {
195
195
  const hasListings = await this.checkListings();
196
196
  if (this.state.adId != null) {
197
197
  this.setState({ view: this.state.originView });
198
+ if (this.props.changeView) {
199
+ this.props.changeView(this.state.originView)
200
+ }
198
201
  await this.loadAd();
199
202
  } else {
200
203
  await this.setState({ isLoading: false });
@@ -202,6 +205,9 @@ export default class Posting extends React.Component {
202
205
  this.popupNoListings.show();
203
206
  } else {
204
207
  this.setState({ view: this.state.originView });
208
+ if (this.props.changeView) {
209
+ this.props.changeView(this.state.originView)
210
+ }
205
211
  }
206
212
  }
207
213
  BackHandler.addEventListener('hardwareBackPress', this.goBack);
@@ -321,6 +327,9 @@ export default class Posting extends React.Component {
321
327
  }
322
328
  this.scroll.scrollTop();
323
329
  this.setState({ view: view });
330
+ if (this.props.changeView) {
331
+ this.props.changeView(view)
332
+ }
324
333
  }
325
334
 
326
335
  goBack = async () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "muba-posting",
3
- "version": "4.1.10",
3
+ "version": "4.1.11",
4
4
  "description": "Posting",
5
5
  "main": "Posting.js",
6
6
  "scripts": {
package/utils/Views.js CHANGED
@@ -1,11 +1,11 @@
1
1
  export const Views = {
2
- PUBLISH_1: 'Publish1',
3
- PUBLISH_2: 'Publish2',
4
- PUBLISH_2_B: 'Publish2b',
5
- PUBLISH_3: 'Publish3',
6
- PUBLISH_4: 'Publish4',
7
- PUBLISH_5: 'Publish5',
8
- PUBLISH_6: 'Publish6',
9
- PREVIEW: 'Preview',
10
- EDIT_SELECTOR: 'PostingEdit'
2
+ PUBLISH_1: 'publish-1',
3
+ PUBLISH_2: 'publish-2',
4
+ PUBLISH_2_B: 'publish-2b',
5
+ PUBLISH_3: 'publish-3',
6
+ PUBLISH_4: 'publish-4',
7
+ PUBLISH_5: 'publish-5',
8
+ PUBLISH_6: 'publish-6',
9
+ PREVIEW: 'preview',
10
+ EDIT_SELECTOR: 'posting-edit'
11
11
  }