mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-20 03:42:10 +03:00
new user notification empty message
This commit is contained in:
parent
5ad81c0a9c
commit
0fe8bbf106
@ -21,4 +21,7 @@ export default EStyleSheet.create({
|
|||||||
listContentContainer: {
|
listContentContainer: {
|
||||||
paddingBottom: 60,
|
paddingBottom: 60,
|
||||||
},
|
},
|
||||||
|
text: {
|
||||||
|
padding: 10,
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/* eslint-disable react/jsx-wrap-multilines */
|
/* eslint-disable react/jsx-wrap-multilines */
|
||||||
import React, { PureComponent, Fragment } from 'react';
|
import React, { PureComponent, Fragment } from 'react';
|
||||||
import { View, FlatList, ActivityIndicator, RefreshControl } from 'react-native';
|
import { View, FlatList, ActivityIndicator, RefreshControl, Text } from 'react-native';
|
||||||
import { injectIntl } from 'react-intl';
|
import { injectIntl } from 'react-intl';
|
||||||
|
|
||||||
// Constants
|
// Constants
|
||||||
@ -177,7 +177,8 @@ class NotificationView extends PureComponent {
|
|||||||
onRightIconPress={readAllNotification}
|
onRightIconPress={readAllNotification}
|
||||||
/>
|
/>
|
||||||
<ThemeContainer>
|
<ThemeContainer>
|
||||||
{({ isDarkTheme }) => (
|
{({ isDarkTheme }) =>
|
||||||
|
_notifications && _notifications.length > 0 ? (
|
||||||
<FlatList
|
<FlatList
|
||||||
data={_notifications}
|
data={_notifications}
|
||||||
refreshing={isNotificationRefreshing}
|
refreshing={isNotificationRefreshing}
|
||||||
@ -208,7 +209,14 @@ class NotificationView extends PureComponent {
|
|||||||
</Fragment>
|
</Fragment>
|
||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
)}
|
) : (
|
||||||
|
<Text style={styles.text}>
|
||||||
|
{intl.formatMessage({
|
||||||
|
id: 'notification.noactivity',
|
||||||
|
})}
|
||||||
|
</Text>
|
||||||
|
)
|
||||||
|
}
|
||||||
</ThemeContainer>
|
</ThemeContainer>
|
||||||
</View>
|
</View>
|
||||||
);
|
);
|
||||||
|
@ -124,7 +124,8 @@
|
|||||||
"activities": "All",
|
"activities": "All",
|
||||||
"replies": "Replies",
|
"replies": "Replies",
|
||||||
"mentions": "Mentions",
|
"mentions": "Mentions",
|
||||||
"reblogs": "Reblogs"
|
"reblogs": "Reblogs",
|
||||||
|
"noactivity": "No new activity found"
|
||||||
},
|
},
|
||||||
"leaderboard": {
|
"leaderboard": {
|
||||||
"daily": "DAILY",
|
"daily": "DAILY",
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import React, { PureComponent, Fragment } from 'react';
|
import React, { Fragment } from 'react';
|
||||||
import { View, SafeAreaView } from 'react-native';
|
import { View, SafeAreaView } from 'react-native';
|
||||||
import ScrollableTabView from 'react-native-scrollable-tab-view';
|
import ScrollableTabView from 'react-native-scrollable-tab-view';
|
||||||
import { injectIntl } from 'react-intl';
|
import { injectIntl } from 'react-intl';
|
||||||
|
Loading…
Reference in New Issue
Block a user