From b25f7be3d5b2c0d5ac47b890d0dfffa65485d8ca Mon Sep 17 00:00:00 2001 From: Nouman Tahir Date: Sun, 25 Jul 2021 23:46:47 +0500 Subject: [PATCH] using empty screen animation in voters screen --- src/components/votersDisplay/view/votersDisplayStyles.js | 4 ++++ src/components/votersDisplay/view/votersDisplayView.js | 8 ++------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/votersDisplay/view/votersDisplayStyles.js b/src/components/votersDisplay/view/votersDisplayStyles.js index d5d308004..4135e8345 100644 --- a/src/components/votersDisplay/view/votersDisplayStyles.js +++ b/src/components/votersDisplay/view/votersDisplayStyles.js @@ -14,4 +14,8 @@ export default EStyleSheet.create({ fontSize: 12, fontFamily: '$primaryFont', }, + emptyContainer: { + justifyContent: 'flex-start', + marginTop: 72, + }, }); diff --git a/src/components/votersDisplay/view/votersDisplayView.js b/src/components/votersDisplay/view/votersDisplayView.js index 6ea54b86e..5507e0ec8 100644 --- a/src/components/votersDisplay/view/votersDisplayView.js +++ b/src/components/votersDisplay/view/votersDisplayView.js @@ -7,7 +7,7 @@ import { useIntl } from 'react-intl'; import { getTimeFromNow } from '../../../utils/time'; // Components -import { UserListItem } from '../../basicUIElements'; +import { EmptyScreen, UserListItem } from '../../basicUIElements'; // Constants import ROUTES from '../../../constants/routeNames'; @@ -67,11 +67,7 @@ const VotersDisplayView = ({ votes, navigation }) => { renderItem={_renderItem} /> ) : ( - - {intl.formatMessage({ - id: 'voters.no_user', - })} - + )} );