diff --git a/src/Screens/NewFeed/Media/Media.js b/src/Screens/NewFeed/Media/Media.js index f951197..752661e 100644 --- a/src/Screens/NewFeed/Media/Media.js +++ b/src/Screens/NewFeed/Media/Media.js @@ -21,8 +21,7 @@ const Media = (props) => { platform: Platform.OS, }); if (res.data.code == 200 && res.data.data) { - if (res.data.data[0] && res.data.data[0].data[0]) - setMediaHot(res.data.data[0].data[0]); + if (res.data.data[0] && res.data.data[0].data[0]) setMediaHot([]); setData(res.data.data); } else { showAlert(TYPE.ERROR, I18n.t('Notification'), I18n.t('Can_not_get_data')); diff --git a/src/Screens/NewFeed/Media/TopMedia.js b/src/Screens/NewFeed/Media/TopMedia.js index bd9b3e2..d649c2b 100644 --- a/src/Screens/NewFeed/Media/TopMedia.js +++ b/src/Screens/NewFeed/Media/TopMedia.js @@ -13,6 +13,7 @@ import Block from '../../../components/Block'; import Icon from 'react-native-vector-icons/AntDesign'; import {useNavigation} from '@react-navigation/native'; import {MEDIADETAIL} from '../../../routers/ScreenNames'; +import AppText from '../../../components/AppText'; const MediaView = (props) => { // const {poster,title} = props.mediaHot; @@ -74,11 +75,7 @@ const MediaView = (props) => { ); } - return ( - <View> - <Text>H</Text> - </View> - ); + return <View></View>; }; const styles = StyleSheet.create({