Advertisement
Guest User

Untitled

a guest
Mar 21st, 2019
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 5.11 KB | None | 0 0
  1. diff --git a/src/components/artwork/ArtworkBiddingBox.tsx b/src/components/artwork/ArtworkBiddingBox.tsx
  2. index 42b7bd5..bee70b4 100644
  3. --- a/src/components/artwork/ArtworkBiddingBox.tsx
  4. +++ b/src/components/artwork/ArtworkBiddingBox.tsx
  5. @@ -1,5 +1,6 @@
  6.  import React from 'react'
  7.  import {
  8. +  LayoutAnimation,
  9.    StyleSheet,
  10.    View,
  11.    Text,
  12. @@ -73,6 +74,7 @@ export default class ArtworkBiddingBox extends React.Component<Props> {
  13.    }
  14.  
  15.    toggleShowBids = () => {
  16. +    LayoutAnimation.easeInEaseOut()
  17.      this.setState({
  18.        showBids: !this.state.showBids,
  19.      })
  20. @@ -198,6 +200,8 @@ export default class ArtworkBiddingBox extends React.Component<Props> {
  21.          <ScrollView
  22.            showsVerticalScrollIndicator={false}
  23.            style={styles.scrollView}
  24. +          scrollEnabled={!this.state.showBids}
  25. +          contentContainerStyle={this.state.showBids ? { flex: 1 } : {}}
  26.          >
  27.            {this.renderBuyingOptions()}
  28.            {!this.state.showBids && <View style={styles.line} />}
  29. @@ -266,7 +270,7 @@ export const styles = StyleSheet.create({
  30.      marginTop: 3,
  31.    },
  32.    line: {
  33. -    width: 300,
  34. +    width: '100%',
  35.      height: 1,
  36.      backgroundColor: '#EAEAEA',
  37.      marginVertical: 25,
  38. diff --git a/src/components/artwork/BidsView.tsx b/src/components/artwork/BidsView.tsx
  39. index 64f481c..c4a1649 100644
  40. --- a/src/components/artwork/BidsView.tsx
  41. +++ b/src/components/artwork/BidsView.tsx
  42. @@ -60,6 +60,14 @@ export default class BidsView extends React.PureComponent<Props> {
  43.              (offer, idx) =>
  44.                offer && offer.node && this.renderBidsCell(idx, offer.node),
  45.            )}
  46. +          {this.props.offers.edges.map(
  47. +            (offer, idx) =>
  48. +              offer && offer.node && this.renderBidsCell(idx, offer.node),
  49. +          )}
  50. +          {this.props.offers.edges.map(
  51. +            (offer, idx) =>
  52. +              offer && offer.node && this.renderBidsCell(idx, offer.node),
  53. +          )}
  54.          </ScrollView>
  55.        </View>
  56.      )
  57. @@ -95,7 +103,7 @@ const styles = StyleSheet.create({
  58.    container: {
  59.      alignItems: 'center',
  60.      width: '100%',
  61. -    marginBottom: 50,
  62. +    flex: 1,
  63.    },
  64.    bidsHistoryText: {
  65.      ...fonts.poppinsRegular,
  66. @@ -119,7 +127,72 @@ const styles = StyleSheet.create({
  67.      lineHeight: 20,
  68.      color: colors.text.darkGrey,
  69.      marginBottom: 1,
  70. -    letterSpacing: 0.69,
  71. +    letterSpacing: 0.69,diff --git a/src/components/artwork/ArtworkBiddingBox.tsx b/src/components/artwork/ArtworkBiddingBox.tsx
  72. +    index 42b7bd5..10a8116 100644
  73. +    --- a/src/components/artwork/ArtworkBiddingBox.tsx
  74. +    +++ b/src/components/artwork/ArtworkBiddingBox.tsx
  75. +    @@ -1,5 +1,6 @@
  76. +     import React from 'react'
  77. +     import {
  78. +    +  LayoutAnimation,
  79. +       StyleSheet,
  80. +       View,
  81. +       Text,
  82. +    @@ -73,6 +74,7 @@ export default class ArtworkBiddingBox extends React.Component<Props> {
  83. +       }
  84. +    
  85. +       toggleShowBids = () => {
  86. +    +    LayoutAnimation.easeInEaseOut()
  87. +         this.setState({
  88. +           showBids: !this.state.showBids,
  89. +         })
  90. +    @@ -198,6 +200,8 @@ export default class ArtworkBiddingBox extends React.Component<Props> {
  91. +             <ScrollView
  92. +               showsVerticalScrollIndicator={false}
  93. +               style={styles.scrollView}
  94. +    +          scrollEnabled={!this.state.showBids}
  95. +    +          contentContainerStyle={this.state.showBids ? { flex: 1 } : {}}
  96. +             >
  97. +               {this.renderBuyingOptions()}
  98. +               {!this.state.showBids && <View style={styles.line} />}
  99. +    diff --git a/src/components/artwork/BidsView.tsx b/src/components/artwork/BidsView.tsx
  100. +    index 64f481c..4309404 100644
  101. +    --- a/src/components/artwork/BidsView.tsx
  102. +    +++ b/src/components/artwork/BidsView.tsx
  103. +    @@ -60,6 +60,14 @@ export default class BidsView extends React.PureComponent<Props> {
  104. +                 (offer, idx) =>
  105. +                   offer && offer.node && this.renderBidsCell(idx, offer.node),
  106. +               )}
  107. +    +          {this.props.offers.edges.map(
  108. +    +            (offer, idx) =>
  109. +    +              offer && offer.node && this.renderBidsCell(idx, offer.node),
  110. +    +          )}
  111. +    +          {this.props.offers.edges.map(
  112. +    +            (offer, idx) =>
  113. +    +              offer && offer.node && this.renderBidsCell(idx, offer.node),
  114. +    +          )}
  115. +             </ScrollView>
  116. +           </View>
  117. +         )
  118. +    @@ -95,7 +103,7 @@ const styles = StyleSheet.create({
  119. +       container: {
  120. +         alignItems: 'center',
  121. +         width: '100%',
  122. +    -    marginBottom: 50,
  123. +    +    flex: 1,
  124. +       },
  125. +       bidsHistoryText: {
  126. +         ...fonts.poppinsRegular,
  127. +    @@ -140,7 +148,7 @@ const styles = StyleSheet.create({
  128. +         marginLeft: 90,
  129. +       },
  130. +       listWrapper: {
  131. +    -    maxHeight: 400,
  132. +    +    flex: 1,
  133. +         width: '100%',
  134. +       },
  135. +     })
  136. +    
  137.      position: 'absolute',
  138.      left: 0,
  139.    },
  140. @@ -140,7 +213,7 @@ const styles = StyleSheet.create({
  141.      marginLeft: 90,
  142.    },
  143.    listWrapper: {
  144. -    maxHeight: 400,
  145. +    flex: 1,
  146.      width: '100%',
  147.    },
  148.  })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement