mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-18 10:52:16 +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,
|
fontSize: 12,
|
||||||
fontFamily: '$primaryFont',
|
fontFamily: '$primaryFont',
|
||||||
},
|
},
|
||||||
|
emptyContainer: {
|
||||||
|
justifyContent: 'flex-start',
|
||||||
|
marginTop: 72,
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
@ -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>
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user