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', - })} - + )} );