using empty screen animation in voters screen

This commit is contained in:
Nouman Tahir 2021-07-25 23:46:47 +05:00
parent d2627491d8
commit b25f7be3d5
2 changed files with 6 additions and 6 deletions

View File

@ -14,4 +14,8 @@ export default EStyleSheet.create({
fontSize: 12, fontSize: 12,
fontFamily: '$primaryFont', fontFamily: '$primaryFont',
}, },
emptyContainer: {
justifyContent: 'flex-start',
marginTop: 72,
},
}); });

View File

@ -7,7 +7,7 @@ import { useIntl } from 'react-intl';
import { getTimeFromNow } from '../../../utils/time'; import { getTimeFromNow } from '../../../utils/time';
// Components // Components
import { UserListItem } from '../../basicUIElements'; import { EmptyScreen, UserListItem } from '../../basicUIElements';
// Constants // Constants
import ROUTES from '../../../constants/routeNames'; import ROUTES from '../../../constants/routeNames';
@ -67,11 +67,7 @@ const VotersDisplayView = ({ votes, navigation }) => {
renderItem={_renderItem} renderItem={_renderItem}
/> />
) : ( ) : (
<Text style={styles.text}> <EmptyScreen style={styles.emptyContainer} />
{intl.formatMessage({
id: 'voters.no_user',
})}
</Text>
)} )}
</SafeAreaView> </SafeAreaView>
); );