Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/src/components/artwork/ArtworkBiddingBox.tsx b/src/components/artwork/ArtworkBiddingBox.tsx
- index 42b7bd5..bee70b4 100644
- --- a/src/components/artwork/ArtworkBiddingBox.tsx
- +++ b/src/components/artwork/ArtworkBiddingBox.tsx
- @@ -1,5 +1,6 @@
- import React from 'react'
- import {
- + LayoutAnimation,
- StyleSheet,
- View,
- Text,
- @@ -73,6 +74,7 @@ export default class ArtworkBiddingBox extends React.Component<Props> {
- }
- toggleShowBids = () => {
- + LayoutAnimation.easeInEaseOut()
- this.setState({
- showBids: !this.state.showBids,
- })
- @@ -198,6 +200,8 @@ export default class ArtworkBiddingBox extends React.Component<Props> {
- <ScrollView
- showsVerticalScrollIndicator={false}
- style={styles.scrollView}
- + scrollEnabled={!this.state.showBids}
- + contentContainerStyle={this.state.showBids ? { flex: 1 } : {}}
- >
- {this.renderBuyingOptions()}
- {!this.state.showBids && <View style={styles.line} />}
- @@ -266,7 +270,7 @@ export const styles = StyleSheet.create({
- marginTop: 3,
- },
- line: {
- - width: 300,
- + width: '100%',
- height: 1,
- backgroundColor: '#EAEAEA',
- marginVertical: 25,
- diff --git a/src/components/artwork/BidsView.tsx b/src/components/artwork/BidsView.tsx
- index 64f481c..c4a1649 100644
- --- a/src/components/artwork/BidsView.tsx
- +++ b/src/components/artwork/BidsView.tsx
- @@ -60,6 +60,14 @@ export default class BidsView extends React.PureComponent<Props> {
- (offer, idx) =>
- offer && offer.node && this.renderBidsCell(idx, offer.node),
- )}
- + {this.props.offers.edges.map(
- + (offer, idx) =>
- + offer && offer.node && this.renderBidsCell(idx, offer.node),
- + )}
- + {this.props.offers.edges.map(
- + (offer, idx) =>
- + offer && offer.node && this.renderBidsCell(idx, offer.node),
- + )}
- </ScrollView>
- </View>
- )
- @@ -95,7 +103,7 @@ const styles = StyleSheet.create({
- container: {
- alignItems: 'center',
- width: '100%',
- - marginBottom: 50,
- + flex: 1,
- },
- bidsHistoryText: {
- ...fonts.poppinsRegular,
- @@ -119,7 +127,72 @@ const styles = StyleSheet.create({
- lineHeight: 20,
- color: colors.text.darkGrey,
- marginBottom: 1,
- - letterSpacing: 0.69,
- + letterSpacing: 0.69,diff --git a/src/components/artwork/ArtworkBiddingBox.tsx b/src/components/artwork/ArtworkBiddingBox.tsx
- + index 42b7bd5..10a8116 100644
- + --- a/src/components/artwork/ArtworkBiddingBox.tsx
- + +++ b/src/components/artwork/ArtworkBiddingBox.tsx
- + @@ -1,5 +1,6 @@
- + import React from 'react'
- + import {
- + + LayoutAnimation,
- + StyleSheet,
- + View,
- + Text,
- + @@ -73,6 +74,7 @@ export default class ArtworkBiddingBox extends React.Component<Props> {
- + }
- +
- + toggleShowBids = () => {
- + + LayoutAnimation.easeInEaseOut()
- + this.setState({
- + showBids: !this.state.showBids,
- + })
- + @@ -198,6 +200,8 @@ export default class ArtworkBiddingBox extends React.Component<Props> {
- + <ScrollView
- + showsVerticalScrollIndicator={false}
- + style={styles.scrollView}
- + + scrollEnabled={!this.state.showBids}
- + + contentContainerStyle={this.state.showBids ? { flex: 1 } : {}}
- + >
- + {this.renderBuyingOptions()}
- + {!this.state.showBids && <View style={styles.line} />}
- + diff --git a/src/components/artwork/BidsView.tsx b/src/components/artwork/BidsView.tsx
- + index 64f481c..4309404 100644
- + --- a/src/components/artwork/BidsView.tsx
- + +++ b/src/components/artwork/BidsView.tsx
- + @@ -60,6 +60,14 @@ export default class BidsView extends React.PureComponent<Props> {
- + (offer, idx) =>
- + offer && offer.node && this.renderBidsCell(idx, offer.node),
- + )}
- + + {this.props.offers.edges.map(
- + + (offer, idx) =>
- + + offer && offer.node && this.renderBidsCell(idx, offer.node),
- + + )}
- + + {this.props.offers.edges.map(
- + + (offer, idx) =>
- + + offer && offer.node && this.renderBidsCell(idx, offer.node),
- + + )}
- + </ScrollView>
- + </View>
- + )
- + @@ -95,7 +103,7 @@ const styles = StyleSheet.create({
- + container: {
- + alignItems: 'center',
- + width: '100%',
- + - marginBottom: 50,
- + + flex: 1,
- + },
- + bidsHistoryText: {
- + ...fonts.poppinsRegular,
- + @@ -140,7 +148,7 @@ const styles = StyleSheet.create({
- + marginLeft: 90,
- + },
- + listWrapper: {
- + - maxHeight: 400,
- + + flex: 1,
- + width: '100%',
- + },
- + })
- +
- position: 'absolute',
- left: 0,
- },
- @@ -140,7 +213,7 @@ const styles = StyleSheet.create({
- marginLeft: 90,
- },
- listWrapper: {
- - maxHeight: 400,
- + flex: 1,
- width: '100%',
- },
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement