Advertisement
Guest User

Untitled

a guest
Mar 21st, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 4.54 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. @@ -95,7 +103,7 @@ const styles = StyleSheet.create({
  43.    container: {
  44.      alignItems: 'center',
  45.      width: '100%',
  46. -    marginBottom: 50,
  47. +    flex: 1,
  48.    },
  49.    bidsHistoryText: {
  50.      ...fonts.poppinsRegular,
  51. @@ -119,7 +127,72 @@ const styles = StyleSheet.create({
  52.      lineHeight: 20,
  53.      color: colors.text.darkGrey,
  54.      marginBottom: 1,
  55. -    letterSpacing: 0.69,
  56. +    letterSpacing: 0.69,diff --git a/src/components/artwork/ArtworkBiddingBox.tsx b/src/components/artwork/ArtworkBiddingBox.tsx
  57. +    index 42b7bd5..10a8116 100644
  58. +    --- a/src/components/artwork/ArtworkBiddingBox.tsx
  59. +    +++ b/src/components/artwork/ArtworkBiddingBox.tsx
  60. +    @@ -1,5 +1,6 @@
  61. +     import React from 'react'
  62. +     import {
  63. +    +  LayoutAnimation,
  64. +       StyleSheet,
  65. +       View,
  66. +       Text,
  67. +    @@ -73,6 +74,7 @@ export default class ArtworkBiddingBox extends React.Component<Props> {
  68. +       }
  69. +    
  70. +       toggleShowBids = () => {
  71. +    +    LayoutAnimation.easeInEaseOut()
  72. +         this.setState({
  73. +           showBids: !this.state.showBids,
  74. +         })
  75. +    @@ -198,6 +200,8 @@ export default class ArtworkBiddingBox extends React.Component<Props> {
  76. +             <ScrollView
  77. +               showsVerticalScrollIndicator={false}
  78. +               style={styles.scrollView}
  79. +    +          scrollEnabled={!this.state.showBids}
  80. +    +          contentContainerStyle={this.state.showBids ? { flex: 1 } : {}}
  81. +             >
  82. +               {this.renderBuyingOptions()}
  83. +               {!this.state.showBids && <View style={styles.line} />}
  84. +    diff --git a/src/components/artwork/BidsView.tsx b/src/components/artwork/BidsView.tsx
  85. +    index 64f481c..4309404 100644
  86. +    --- a/src/components/artwork/BidsView.tsx
  87. +    +++ b/src/components/artwork/BidsView.tsx
  88. +    @@ -60,6 +60,14 @@ export default class BidsView extends React.PureComponent<Props> {
  89. +                 (offer, idx) =>
  90. +                   offer && offer.node && this.renderBidsCell(idx, offer.node),
  91. +               )}
  92. +    +          {this.props.offers.edges.map(
  93. +    +            (offer, idx) =>
  94. +    +              offer && offer.node && this.renderBidsCell(idx, offer.node),
  95. +    +          )}
  96. +    +          {this.props.offers.edges.map(
  97. +    +            (offer, idx) =>
  98. +    +              offer && offer.node && this.renderBidsCell(idx, offer.node),
  99. +    +          )}
  100. +             </ScrollView>
  101. +           </View>
  102. +         )
  103. +    @@ -95,7 +103,7 @@ const styles = StyleSheet.create({
  104. +       container: {
  105. +         alignItems: 'center',
  106. +         width: '100%',
  107. +    -    marginBottom: 50,
  108. +    +    flex: 1,
  109. +       },
  110. +       bidsHistoryText: {
  111. +         ...fonts.poppinsRegular,
  112. +    @@ -140,7 +148,7 @@ const styles = StyleSheet.create({
  113. +         marginLeft: 90,
  114. +       },
  115. +       listWrapper: {
  116. +    -    maxHeight: 400,
  117. +    +    flex: 1,
  118. +         width: '100%',
  119. +       },
  120. +     })
  121. +    
  122.      position: 'absolute',
  123.      left: 0,
  124.    },
  125. @@ -140,7 +213,7 @@ const styles = StyleSheet.create({
  126.      marginLeft: 90,
  127.    },
  128.    listWrapper: {
  129. -    maxHeight: 400,
  130. +    flex: 1,
  131.      width: '100%',
  132.    },
  133.  })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement