From c9a40a01ba11074e28d9f7fb264766c7e8ab635a Mon Sep 17 00:00:00 2001 From: ue Date: Sun, 25 Aug 2019 17:10:10 +0300 Subject: [PATCH] created poins memo description --- src/components/points/view/pointsView.js | 40 ++++++++++++++----- .../transaction/view/transactionView.js | 2 +- src/config/locales/en-US.json | 3 +- 3 files changed, 32 insertions(+), 13 deletions(-) diff --git a/src/components/points/view/pointsView.js b/src/components/points/view/pointsView.js index bb51d6820..95d21b23e 100644 --- a/src/components/points/view/pointsView.js +++ b/src/components/points/view/pointsView.js @@ -1,3 +1,4 @@ +/* eslint-disable react/jsx-wrap-multilines */ import React, { Component, Fragment } from 'react'; import { Text, View, FlatList, ScrollView, RefreshControl, TouchableOpacity } from 'react-native'; import { injectIntl } from 'react-intl'; @@ -11,6 +12,7 @@ import { IconButton } from '../../iconButton'; import { Icon } from '../../icon'; import { MainButton } from '../../mainButton'; import { DropdownButton } from '../../dropdownButton'; +import { CollapsibleCard } from '../../collapsibleCard'; // Utils import { getTimeFromNow } from '../../../utils/time'; @@ -198,17 +200,33 @@ class PointsView extends Component { keyExtractor={item => item.id.toString()} ListEmptyComponent={this._renderLoading()} renderItem={({ item, index }) => ( - + + } + > + {(get(item, 'memo') || get(item, 'sender')) && ( + + )} + )} /> diff --git a/src/components/transaction/view/transactionView.js b/src/components/transaction/view/transactionView.js index 07a1c88a4..533d09a3a 100644 --- a/src/components/transaction/view/transactionView.js +++ b/src/components/transaction/view/transactionView.js @@ -85,7 +85,7 @@ class TransactionView extends PureComponent { {(get(transactionData, 'details') || get(transactionData, 'memo')) && (