diff options
author | ankit-thanekar007 <ankit.thanekar007@gmail.com> | 2021-05-03 10:23:01 -0700 |
---|---|---|
committer | ankit-thanekar007 <ankit.thanekar007@gmail.com> | 2021-05-03 10:23:01 -0700 |
commit | ef2c8f57971b6ca55a6a3ef58609b0c80fe55869 (patch) | |
tree | 1c5d98fee8a25734a1d39141963005e3898222a9 /src | |
parent | 840e144e48fe90b33ce9ab713ca02a696887b8ea (diff) |
tma-822-base UI changes
Diffstat (limited to 'src')
-rw-r--r-- | src/components/common/EmptyContentView.tsx (renamed from src/screens/main/notification/EmptyNotificationView.tsx) | 12 | ||||
-rw-r--r-- | src/screens/chat/ChatListScreen.tsx | 4 | ||||
-rw-r--r-- | src/screens/main/NotificationsScreen.tsx | 4 |
3 files changed, 10 insertions, 10 deletions
diff --git a/src/screens/main/notification/EmptyNotificationView.tsx b/src/components/common/EmptyContentView.tsx index b80bb203..1416c556 100644 --- a/src/screens/main/notification/EmptyNotificationView.tsx +++ b/src/components/common/EmptyContentView.tsx @@ -6,10 +6,10 @@ import { NO_NEW_NOTIFICATIONS, FIRST_MESSAGE, START_CHATTING, -} from '../../../constants/strings'; -import {NOTIFICATION_GRADIENT} from '../../../constants/constants'; -import {SCREEN_HEIGHT, normalize, SCREEN_WIDTH} from '../../../utils'; -import {EmptyViewProps} from '../../../types/index'; +} from '../../constants/strings'; +import {NOTIFICATION_GRADIENT} from '../../constants/constants'; +import {SCREEN_HEIGHT, normalize, SCREEN_WIDTH} from '../../utils'; +import {EmptyViewProps} from '../../types/index'; const EmptyNotificationView: React.FC<EmptyViewProps> = ({viewType}) => { const _getNotificationImage = () => { @@ -20,7 +20,7 @@ const EmptyNotificationView: React.FC<EmptyViewProps> = ({viewType}) => { angle={180} colors={NOTIFICATION_GRADIENT}> <Image - source={require('../../../assets/images/empty_notifications.png')} + source={require('../../assets/images/empty_notifications.png')} /> </LinearGradient> ); @@ -35,7 +35,7 @@ const EmptyNotificationView: React.FC<EmptyViewProps> = ({viewType}) => { colors={NOTIFICATION_GRADIENT}> <Image style={styles.imageStyles} - source={require('../../../assets/images/no_chats.png')} + source={require('../../assets/images/no_chats.png')} /> </LinearGradient> ); diff --git a/src/screens/chat/ChatListScreen.tsx b/src/screens/chat/ChatListScreen.tsx index 810ebdb2..1df5c2da 100644 --- a/src/screens/chat/ChatListScreen.tsx +++ b/src/screens/chat/ChatListScreen.tsx @@ -9,7 +9,7 @@ import {TabsGradient} from '../../components'; import {ChannelPreview, MessagesHeader} from '../../components/messages'; import {MainStackParams} from '../../routes'; import {RootState} from '../../store/rootReducer'; -import EmptyNotificationView from '../../screens/main/notification/EmptyNotificationView'; +import EmptyContentView from '../../components/common/EmptyContentView'; import { LocalAttachmentType, LocalChannelType, @@ -101,7 +101,7 @@ const ChatListScreen: React.FC<ChatListScreenProps> = () => { maxUnreadCount={99} Preview={ChannelPreview} EmptyStateIndicator={() => { - return <EmptyNotificationView viewType={'ChatList'} />; + return <EmptyContentView viewType={'ChatList'} />; }} /> </View> diff --git a/src/screens/main/NotificationsScreen.tsx b/src/screens/main/NotificationsScreen.tsx index 06a61f04..9fbc4cfe 100644 --- a/src/screens/main/NotificationsScreen.tsx +++ b/src/screens/main/NotificationsScreen.tsx @@ -28,7 +28,7 @@ import { import {RootState} from '../../store/rootReducer'; import {NotificationType, ScreenType} from '../../types'; import {getDateAge, normalize, SCREEN_HEIGHT, SCREEN_WIDTH} from '../../utils'; -import EmptyNotificationView from './notification/EmptyNotificationView'; +import EmptyContentView from '../../components/common/EmptyContentView'; const NotificationsScreen: React.FC = () => { const {newNotificationReceived} = useSelector( @@ -304,7 +304,7 @@ const NotificationsScreen: React.FC = () => { extraData={requestLimit} ListEmptyComponent={ <View style={styles.emptyViewContainer}> - <EmptyNotificationView viewType={'Notification'} /> + <EmptyContentView viewType={'Notification'} /> </View> } /> |