mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-18 19:01:38 +03:00
using empty screen animation in voters screen
This commit is contained in:
parent
d2627491d8
commit
b25f7be3d5
@ -14,4 +14,8 @@ export default EStyleSheet.create({
|
||||
fontSize: 12,
|
||||
fontFamily: '$primaryFont',
|
||||
},
|
||||
emptyContainer: {
|
||||
justifyContent: 'flex-start',
|
||||
marginTop: 72,
|
||||
},
|
||||
});
|
||||
|
@ -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}
|
||||
/>
|
||||
) : (
|
||||
<Text style={styles.text}>
|
||||
{intl.formatMessage({
|
||||
id: 'voters.no_user',
|
||||
})}
|
||||
</Text>
|
||||
<EmptyScreen style={styles.emptyContainer} />
|
||||
)}
|
||||
</SafeAreaView>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user